Skip to content

Commit 464ff6e

Browse files
committed
fix: Rename toolsCall -> toolCalls
1 parent f183f75 commit 464ff6e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/core/src/llm/README.md

+2-2
Original file line numberDiff line numberDiff 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: {

packages/core/src/llm/index.ts

+1-1
Original file line numberDiff line numberDiff 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
}

packages/core/src/types/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export type Provider = 'openai' | 'anthropic' | 'google';
1010

1111
export interface LLMResult {
1212
content?: string | null;
13-
toolsCall?: OpenAI.Chat.ChatCompletionMessage['tool_calls'];
13+
toolCalls?: OpenAI.Chat.ChatCompletionMessage['tool_calls'];
1414
}
1515

1616
export interface LLMServiceConfig {

0 commit comments

Comments
 (0)