Skip to content

Commit a3622f8

Browse files
committed
removed schema field
1 parent a745a1a commit a3622f8

File tree

1 file changed

+0
-8
lines changed
  • crates/chat-cli/src/cli/agent

1 file changed

+0
-8
lines changed

crates/chat-cli/src/cli/agent/mod.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,6 @@ pub enum AgentConfigError {
129129
#[serde(rename_all = "camelCase", deny_unknown_fields)]
130130
#[schemars(description = "An Agent is a declarative way of configuring a given instance of q chat.")]
131131
pub struct Agent {
132-
#[serde(rename = "$schema", default = "default_schema")]
133-
pub schema: String,
134132
/// Name of the agent
135133
pub name: String,
136134
/// This field is not model facing and is mostly here for users to discern between agents
@@ -180,7 +178,6 @@ pub struct Agent {
180178
impl Default for Agent {
181179
fn default() -> Self {
182180
Self {
183-
schema: default_schema(),
184181
name: DEFAULT_AGENT_NAME.to_string(),
185182
description: Some("Default agent".to_string()),
186183
prompt: Default::default(),
@@ -990,10 +987,6 @@ pub fn queue_permission_override_warning(
990987
)?)
991988
}
992989

993-
fn default_schema() -> String {
994-
"https://raw.githubusercontent.com/aws/amazon-q-developer-cli/refs/heads/main/schemas/agent-v1.json".into()
995-
}
996-
997990
// Check if a tool reference is MCP-specific (not @builtin and starts with @)
998991
pub fn is_mcp_tool_ref(s: &str) -> bool {
999992
// @builtin is not MCP, it's a reference to all built-in tools
@@ -1277,7 +1270,6 @@ mod tests {
12771270
allowed_tools.insert("@server3/tool_*".to_string());
12781271

12791272
let agent = Agent {
1280-
schema: "test".to_string(),
12811273
name: "test-agent".to_string(),
12821274
description: None,
12831275
prompt: None,

0 commit comments

Comments
 (0)