inputSchema property

  1. @override
Map<String, dynamic> get inputSchema
override

JSON Schema for the tool's input parameters.

Implementation

@override
Map<String, dynamic> get inputSchema => {
  'type': 'object',
  'properties': {
    'name': {
      'type': 'string',
      'description': 'A short name for the sub-agent',
    },
    'role': {
      'type': 'string',
      'description':
          'The role of the agent (e.g. "code_reviewer", "test_writer")',
    },
    'model': {
      'type': 'string',
      'description': 'Model to use (default: same as parent)',
    },
    'system_prompt': {
      'type': 'string',
      'description': 'System prompt for the sub-agent',
    },
    'tools': {
      'type': 'array',
      'items': {'type': 'string'},
      'description': 'Tool names available to the sub-agent',
    },
    'task': {
      'type': 'string',
      'description': 'The task for the sub-agent to perform',
    },
  },
  'required': ['name', 'role', 'task'],
};