You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since gpt3.5/4 and Claude-3 are all support function calls, they have different way to use it. It's necessary to use a better way to handle it on the LlamaindexTS side to make user easy to switch without overhead.
typeMessageRole='user'|'ai'|'system'typeMessageContentPart=MessageContentTextPart|MessageContentImagePart// ...typeMessage={role: MessageRolecontent: string|MessageContentPart[]}interfaceMessageInterop<LLMMessage>{toLLMMessage(messages: Message[]): LLMMessage[]fromAIMessage(message: LLMMessage[]): Message[]}interfaceLLM<LLMMessage>extendsMessageInterop<LLMMessage>{// ...}typeTool<Input>={handler: (input: Input)=>string|Promise<string>metadata: {name: string// ... there should be json schema so that it could support zod}}typeLLMFunctionCallEvent=LLMBaseEvent<'llm-function-call',{tool: Tool;// <-- should be BaseTool<Input>input: unknown// <-- should be Input}>
The text was updated successfully, but these errors were encountered:
Since gpt3.5/4 and Claude-3 are all support function calls, they have different way to use it. It's necessary to use a better way to handle it on the LlamaindexTS side to make user easy to switch without overhead.
The text was updated successfully, but these errors were encountered: