Pass model to tools (#244323)

* Pass model to tools
When tools make requests, they should use the right model. So we
- save the model id on the request
- look it up when the tool is invoked
- resolve it to a LanguageModelChat in the EH

* Fix build
This commit is contained in:
Rob Lourens
2025-03-21 23:42:06 -07:00
committed by GitHub
parent 6e2fab740e
commit 2bdf282f0a
8 changed files with 38 additions and 8 deletions

View File

@@ -433,4 +433,8 @@ declare module 'vscode' {
Medium = 2,
Full = 3
}
export interface LanguageModelToolInvocationOptions<T> {
model?: LanguageModelChat;
}
}