feat: added syntax-aware tool example rendering across catalog, AI, and agent modules
- Added model-to-syntax mapping in catalog with preferred tool-call syntax API. - Added `ToolExample` typing and `ToolCallSyntax` exports across tool/grammar interfaces. - Added syntax-aware tool example rendering through provider-specific grammar invocations. - Added `exampleSyntax` context flow and example metadata so rendered prompts include examples.
This commit is contained in:
@@ -72,7 +72,7 @@ describe("InputController.presentLargePasteMenu actions", () => {
|
||||
await controller.presentLargePasteMenu("payload", 1);
|
||||
|
||||
const options = spies.showHookSelector.mock.calls[0][1] as Array<{ label: string }>;
|
||||
expect(options.map((option) => option.label)).toEqual([
|
||||
expect(options.map(option => option.label)).toEqual([
|
||||
"Attach as a wrapped block",
|
||||
"Attach as local file",
|
||||
"Paste inline",
|
||||
|
||||
Reference in New Issue
Block a user