@firefliesai/schema-forge
Version:
Transform TypeScript classes into JSON Schema definitions with automatic support for OpenAI, Anthropic, and Google Gemini function calling (tool) formats
64 lines (63 loc) • 1.55 kB
TypeScript
declare enum StatusType {
Online = "ONLINE",
Offline = "OFFLINE",
Away = "AWAY",
Busy = "BUSY"
}
declare enum RankType {
Novice = 1,
Intermediate = 2,
Expert = 3,
Master = 4
}
export declare const GameCharacterToolName = "Game Character Configuration";
export declare const GameCharacterToolDesc = "Configure a game character with various attributes";
/**
* tips:
* 1. for array or enum type, you need to add @ToolProp({items:{type}, or enum instead}.
* for string/number property, you can just use TypeScript type
* 2. you can pass TypeScript Enum or [1, 2, 3] or ['a', 'b', 'c'] as enum
*/
export declare class GameCharacter {
name: string;
level: number;
titles: string[];
scores: number[];
status: StatusType;
allowedStatuses: StatusType[];
classType: string;
roles: string[];
rank: RankType;
availableRanks: RankType[];
tier: number;
unlockedTiers: number[];
}
declare class Location {
country: string;
city: string;
}
declare class Bank {
bankName: string;
account: number;
}
export declare class GameCharacterV2 {
name: string;
level: number;
titles: string[];
scores: number[];
status: StatusType;
rank: RankType;
availableStatuses: StatusType[];
location: Location;
banks: Bank[];
}
export declare class ThirdLevelDto {
name: string;
}
export declare class SecondLevelDto {
thirdLevelObjs: ThirdLevelDto[];
}
export declare class FirstLevelDto {
secondLevelObj: SecondLevelDto;
}
export {};