@@ -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." ) ]
131131pub 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 {
180178impl 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 @)
998991pub 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