Skip to content

Commit 45fc098

Browse files
committed
feat: Add tool calling feature with internationalization support
1 parent 0bce737 commit 45fc098

21 files changed

+76
-8
lines changed

src/core/config/ProviderSettingsManager.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const providerProfilesSchema = z.object({
3232
openAiHeadersMigrated: z.boolean().optional(),
3333
consecutiveMistakeLimitMigrated: z.boolean().optional(),
3434
todoListEnabledMigrated: z.boolean().optional(),
35-
toolcallEnabledMigrated: z.boolean().optional(),
35+
toolCallEnabledMigrated: z.boolean().optional(),
3636
})
3737
.optional(),
3838
})
@@ -57,7 +57,7 @@ export class ProviderSettingsManager {
5757
openAiHeadersMigrated: true, // Mark as migrated on fresh installs
5858
consecutiveMistakeLimitMigrated: true, // Mark as migrated on fresh installs
5959
todoListEnabledMigrated: true, // Mark as migrated on fresh installs
60-
toolcallEnabledMigrated: true, // Mark as migrated on fresh installs
60+
toolCallEnabledMigrated: true, // Mark as migrated on fresh installs
6161
},
6262
}
6363

@@ -158,9 +158,9 @@ export class ProviderSettingsManager {
158158
providerProfiles.migrations.todoListEnabledMigrated = true
159159
isDirty = true
160160
}
161-
if (!providerProfiles.migrations.toolcallEnabledMigrated) {
161+
if (!providerProfiles.migrations.toolCallEnabledMigrated) {
162162
await this.migrateToolCallEnabled(providerProfiles)
163-
providerProfiles.migrations.toolcallEnabledMigrated = true
163+
providerProfiles.migrations.toolCallEnabledMigrated = true
164164
isDirty = true
165165
}
166166

src/core/config/__tests__/ProviderSettingsManager.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ describe("ProviderSettingsManager", () => {
6868
openAiHeadersMigrated: true,
6969
consecutiveMistakeLimitMigrated: true,
7070
todoListEnabledMigrated: true,
71-
toolcallEnabledMigrated: true,
71+
toolCallEnabledMigrated: true,
7272
},
7373
}),
7474
)

src/core/tools/schemas/read-file-schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { BaseToolSchema } from "./base-tool-schema"
33
const baseReadFileSchema: BaseToolSchema = {
44
name: "read_file",
55
description:
6-
"Request to read the contents a file. Supports text extraction from PDF and DOCX files, but may not handle other binary files properly.",
6+
"Request to read the contents of a file. Supports text extraction from PDF and DOCX files, but may not handle other binary files properly.",
77
parameters: [
88
{
99
name: "args",

webview-ui/src/i18n/locales/ca/settings.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/de/settings.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/en/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,8 @@
662662
"description": "When enabled, Roo can create and manage todo lists to track task progress. This helps organize complex tasks into manageable steps."
663663
},
664664
"toolCall": {
665-
"label": "Enable function calling.",
666-
"description": "When enabled, uses function calling instead of XML-based tool calling. Experimental!!!"
665+
"label": "Enable tool calling",
666+
"description": "When enabled, Roo can uses tool call instead of XML-based tool calling prompt. Experimental!!!"
667667
}
668668
},
669669
"experimental": {

webview-ui/src/i18n/locales/es/settings.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/fr/settings.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/hi/settings.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/id/settings.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)