Skip to content

Commit

Permalink
fix: Rename toolsCall -> toolCalls
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavrajs committed Dec 8, 2024
1 parent f183f75 commit 464ff6e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/llm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The LLM service provides a unified interface for interacting with various Large
**Returns:**
- Promise<LLMResult> containing either:
- `{ content: string }` for standard responses
- `{ content: string | null, toolsCall: array }` for tool-based responses
- `{ content: string | null, toolCalls: array }` for tool-based responses

## Response Formats
### Standard Response
Expand All @@ -36,7 +36,7 @@ The LLM service provides a unified interface for interacting with various Large
```typescript
{
content: string | null,
toolsCall: Array<{
toolCalls: Array<{
id: string,
type: string,
function: {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/llm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class LLM {

private prepareToolCallResult(message: OpenAI.Chat.ChatCompletionMessage): LLMResult {
return {
toolsCall: message.tool_calls,
toolCalls: message.tool_calls,
content: message.content
};
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export type Provider = 'openai' | 'anthropic' | 'google';

export interface LLMResult {
content?: string | null;
toolsCall?: OpenAI.Chat.ChatCompletionMessage['tool_calls'];
toolCalls?: OpenAI.Chat.ChatCompletionMessage['tool_calls'];
}

export interface LLMServiceConfig {
Expand Down

0 comments on commit 464ff6e

Please sign in to comment.