File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ The LLM service provides a unified interface for interacting with various Large
2222** Returns:**
2323- Promise<LLMResult > containing either:
2424 - ` { content: string } ` for standard responses
25- - ` { content: string | null, toolsCall : array } ` for tool-based responses
25+ - ` { content: string | null, toolCalls : array } ` for tool-based responses
2626
2727## Response Formats
2828### Standard Response
@@ -36,7 +36,7 @@ The LLM service provides a unified interface for interacting with various Large
3636``` typescript
3737{
3838 content : string | null ,
39- toolsCall : Array <{
39+ toolCalls : Array <{
4040 id: string ,
4141 type: string ,
4242 function: {
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ export class LLM {
7575
7676 private prepareToolCallResult ( message : OpenAI . Chat . ChatCompletionMessage ) : LLMResult {
7777 return {
78- toolsCall : message . tool_calls ,
78+ toolCalls : message . tool_calls ,
7979 content : message . content
8080 } ;
8181 }
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export type Provider = 'openai' | 'anthropic' | 'google';
1010
1111export interface LLMResult {
1212 content ?: string | null ;
13- toolsCall ?: OpenAI . Chat . ChatCompletionMessage [ 'tool_calls' ] ;
13+ toolCalls ?: OpenAI . Chat . ChatCompletionMessage [ 'tool_calls' ] ;
1414}
1515
1616export interface LLMServiceConfig {
You can’t perform that action at this time.
0 commit comments