[AI] Collapse NativeToolBinder to a single bind() entry (#20051)
The binder doesnt need an agent or full tool context -- just a model and options. Single `bind(model, options)` entry! Builds on #20022.
This commit is contained in:
-9
@@ -79,15 +79,6 @@ export class AiModelConfigService {
|
||||
return tools;
|
||||
}
|
||||
|
||||
getNativeModelToolsForAgent(
|
||||
model: RegisteredAiModel,
|
||||
agent: FlatAgentWithRoleId,
|
||||
): ToolSet {
|
||||
return this.getNativeModelTools(model, {
|
||||
webSearchEnabled: agent.modelConfiguration?.webSearch?.enabled === true,
|
||||
});
|
||||
}
|
||||
|
||||
private getXaiProviderOptions(agent: FlatAgentWithRoleId): ProviderOptions {
|
||||
if (
|
||||
!agent.modelConfiguration ||
|
||||
|
||||
Reference in New Issue
Block a user