AxAIOpenAIUsage
type AxAIOpenAIUsage = object;
Properties
completion_tokens
completion_tokens: number;
prompt_tokens
prompt_tokens: number;
total_tokens
total_tokens: number;
DSPy for TypeScript. Working with LLMs is complex—they don't always do what you want. DSPy makes it easier to build amazing things with LLMs. Just define your inputs and outputs (signature) and an efficient prompt is auto-generated and used. Connect together various signatures to build complex systems and workflows using LLMs.
type AxAIOpenAIUsage = object;
completion_tokens: number;
prompt_tokens: number;
total_tokens: number;