You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make markdown configuration compatible with VSC chat modes
See https://code.visualstudio.com/docs/copilot/customization/custom-chat-modes (seems to have been renamed to "custom agents" in VSC insiders now).
Our extensions (such as `client`, `use` and `options` can be persisted in other config files (since they are aggregated at run-time) or kept in the same agents.md file since VSCode will ignore them.
This agent is designed to take notes based on user input. It can capture important information, summarize discussions, and organize notes for easy retrieval later. The Notes Agent can be particularly useful in meetings, brainstorming sessions, or any scenario where capturing key points is essential.
13
+
14
+
It saves these notes in JSON-LD format to the file `notes.json` alongside this agent, ensuring that the notes are structured and easily accessible for future reference.
Copy file name to clipboardExpand all lines: sample/Server/ai.toml
+6-13Lines changed: 6 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -11,23 +11,16 @@ instructions = """\
11
11
You are an AI agent responsible for processing orders for food or other items.
12
12
Your primary goals are to identify user intent, extract or request provider information, manage order data using tools and friendly responses to guide users through the ordering process.
13
13
"""
14
+
options = { modelid = "gpt-4o-mini" }
15
+
# 👇 alternative syntax to specify options
16
+
# [ai.agents.orders.options]
17
+
# modelid = "gpt-4o-mini"
14
18
15
19
# ai.clients.openai, can omit the ai.clients prefix
16
20
client = "openai"
17
-
use = ["tone", "get_date", "create_order", "cancel_order"]
description = "Help users create, manage, and retrieve notes effectively."
25
-
instructions = """
26
-
You are an AI agent that assists users in creating, managing, and retrieving notes.
27
-
Your primary goals are to understand user requests related to notes, provide clear and concise responses, and utilize tools to organize and access note data efficiently.
thrownewInvalidOperationException($"Specified tool '{toolName}' for AI context '{ctxSection.Path}:tools' is not registered, and is required by agent section '{configSection.Path}'.");
159
+
thrownewInvalidOperationException($"Specified tool '{toolName}' for AI context '{ctxSection.Path}:tools' is not registered as a keyed {nameof(AITool)} or {nameof(AIFunction)}, and is required by agent section '{configSection.Path}'.");
165
160
166
161
configured.Tools??=[];
167
162
configured.Tools.Add(tool);
@@ -172,7 +167,16 @@ public override IAsyncEnumerable<AgentRunResponseUpdate> RunStreamingAsync(IEnum
172
167
continue;
173
168
}
174
169
175
-
thrownewInvalidOperationException($"Specified AI context '{use}' for agent '{name}' is not registered as either {nameof(AIContent)}, {nameof(AITool)} or configuration section 'ai:context:{use}'.");
170
+
thrownewInvalidOperationException($"Specified AI context '{use}' for agent '{name}' is not registered as either {nameof(AIContent)} or configuration section 'ai:context:{use}'.");
thrownewInvalidOperationException($"Specified tool '{toolName}' for agent '{section}' is not registered as a keyed {nameof(AITool)} or {nameof(AIFunction)}.");
0 commit comments