[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:
nitin
2026-04-27 20:05:59 +05:30
committed by GitHub
parent 13aaea597e
commit bb5f294c5a
6 changed files with 13 additions and 44 deletions
@@ -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 ||