inputSchema property
JSON Schema for the tool's input parameters.
Implementation
@override
Map<String, dynamic> get inputSchema => {
'type': 'object',
'properties': {
'prompt': {
'type': 'string',
'description': 'The task for the agent to perform',
},
'description': {
'type': 'string',
'description': 'A short (3-5 word) description of the task',
},
'subagent_type': {
'type': 'string',
'description': 'The type of specialized agent to use',
},
'model': {
'type': 'string',
'enum': ['sonnet', 'opus', 'haiku'],
'description': 'Optional model override for this agent',
},
'run_in_background': {
'type': 'boolean',
'description': 'Run agent in background (default: false)',
},
},
'required': ['description', 'prompt'],
};