File tree 3 files changed +4
-4
lines changed
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
22
22
** Returns:**
23
23
- Promise<LLMResult > containing either:
24
24
- ` { 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
26
26
27
27
## Response Formats
28
28
### Standard Response
@@ -36,7 +36,7 @@ The LLM service provides a unified interface for interacting with various Large
36
36
``` typescript
37
37
{
38
38
content : string | null ,
39
- toolsCall : Array <{
39
+ toolCalls : Array <{
40
40
id: string ,
41
41
type: string ,
42
42
function: {
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ export class LLM {
75
75
76
76
private prepareToolCallResult ( message : OpenAI . Chat . ChatCompletionMessage ) : LLMResult {
77
77
return {
78
- toolsCall : message . tool_calls ,
78
+ toolCalls : message . tool_calls ,
79
79
content : message . content
80
80
} ;
81
81
}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export type Provider = 'openai' | 'anthropic' | 'google';
10
10
11
11
export interface LLMResult {
12
12
content ?: string | null ;
13
- toolsCall ?: OpenAI . Chat . ChatCompletionMessage [ 'tool_calls' ] ;
13
+ toolCalls ?: OpenAI . Chat . ChatCompletionMessage [ 'tool_calls' ] ;
14
14
}
15
15
16
16
export interface LLMServiceConfig {
You can’t perform that action at this time.
0 commit comments