Validation error for WorkflowTools.run_workflow (input.input_data)

Hi all!

Could you guys, please, give me some insights about what it is going on. When trying to call a tool I get that:

DEBUG Calling Ollama with request parameters: {‘tools’: [{‘type’: ‘function’, ‘function’: {‘name’: ‘run_workflow’,
‘description’: ‘Use this tool to execute the workflow with the specified inputs and parameters.\nAfter thinking through
the requirements, use this tool to run the workflow with appropriate inputs.’, ‘parameters’: {‘type’: ‘object’,
‘properties’: {‘input’: {‘properties’: {‘input_data’: {‘title’: ‘Input Data’, ‘type’: ‘string’}, ‘additional_data’:
{‘anyOf’: [{‘additionalProperties’: True, ‘type’: ‘object’}, {‘type’: ‘null’}], ‘default’: None, ‘title’: ‘Additional
Data’}}, ‘required’: [‘input_data’], ‘title’: ‘RunWorkflowInput’, ‘type’: ‘object’}}, ‘required’: [‘input’]},
‘requires_confirmation’: False, ‘external_execution’: False}}, {‘type’: ‘function’, ‘function’: {‘name’: ‘open_ticket’,
‘description’: ‘Abre um chamado de suporte com os dados coletados do usuário.’, ‘parameters’: {‘type’: ‘object’,
‘properties’: {}, ‘required’: [‘step_input’]}}}]}
DEBUG =============================================== assistant ================================================
DEBUG Tool Calls:
Name: ‘run_workflow’
Arguments: ‘input: {‘step_input’: {‘descricao_problema’: ‘Quando tento abrir o eproc aparece uma tela em branco’,
‘email’: ‘fabrizio.rocha@jfes.jus.br’, ‘nome_completo’: ‘Fabrizio Rocha’}}’
DEBUG *********************************************** METRICS ************************************************
DEBUG * Tokens: input=1036, output=74, total=1110
DEBUG * Duration: 0.9809s
DEBUG * Tokens per second: 75.4381 tokens/s
DEBUG *********************************************** METRICS ************************************************
DEBUG Running: run_workflow(…)
WARNING Could not run function run_workflow(…)
ERROR 1 validation error for WorkflowTools.run_workflow
input.input_data
Field required [type=missing, input_value={‘step_input’: {‘descrica…eto’: ‘Fabrizio Rocha’}}, input_type=dict]
For further information visit
Traceback (most recent call last):
File “/home/fabrizio.rocha/projetos/juliav1-venv/lib64/python3.13/site-packages/agno/tools/function.py”, line 728,
in execute
result = self.function.entrypoint(**entrypoint_args, **self.arguments) # type: ignore
File
“/home/fabrizio.rocha/projetos/juliav1-venv/lib64/python3.13/site-packages/pydantic/_internal/_validate_call.py”,
line 39, in wrapper_function
return wrapper(*args, **kwargs)
File
“/home/fabrizio.rocha/projetos/juliav1-venv/lib64/python3.13/site-packages/pydantic/_internal/_validate_call.py”,
line 136, in call
res = self.pydantic_validator.validate_python(pydantic_core.ArgsKwargs(args, kwargs))
pydantic_core._pydantic_core.ValidationError: 1 validation error for WorkflowTools.run_workflow
input.input_data
Field required [type=missing, input_value={‘step_input’: {‘descrica…eto’: ‘Fabrizio Rocha’}}, input_type=dict]
For further information visit
DEBUG ================================================== tool ==================================================
DEBUG 1 validation error for WorkflowTools.run_workflow
input.input_data
Field required [type=missing, input_value={‘step_input’: {‘descrica…eto’: ‘Fabrizio Rocha’}}, input_type=dict]
For further information visit
DEBUG ********************************************* TOOL METRICS *********************************************
DEBUG * Duration: 0.0264s
DEBUG ********************************************* TOOL METRICS *********************************************
DEBUG Calling Ollama with request parameters: {‘tools’: [{‘type’: ‘function’, ‘function’: {‘name’: ‘run_workflow’,
‘description’: ‘Use this tool to execute the workflow with the specified inputs and parameters.\nAfter thinking through
the requirements, use this tool to run the workflow with appropriate inputs.’, ‘parameters’: {‘type’: ‘object’,
‘properties’: {‘input’: {‘properties’: {‘input_data’: {‘title’: ‘Input Data’, ‘type’: ‘string’}, ‘additional_data’:
{‘anyOf’: [{‘additionalProperties’: True, ‘type’: ‘object’}, {‘type’: ‘null’}], ‘default’: None, ‘title’: ‘Additional
Data’}}, ‘required’: [‘input_data’], ‘title’: ‘RunWorkflowInput’, ‘type’: ‘object’}}, ‘required’: [‘input’]},
‘requires_confirmation’: False, ‘external_execution’: False}}, {‘type’: ‘function’, ‘function’: {‘name’: ‘open_ticket’,
‘description’: ‘Abre um chamado de suporte com os dados coletados do usuário.’, ‘parameters’: {‘type’: ‘object’,
‘properties’: {}, ‘required’: [‘step_input’]}}}]}
DEBUG =============================================== assistant ================================================
DEBUG *********************************************** METRICS ************************************************
DEBUG * Tokens: input=1114, output=88, total=1202
DEBUG * Duration: 0.8463s
DEBUG * Tokens per second: 103.9805 tokens/s
DEBUG *********************************************** METRICS ************************************************
DEBUG --------------------------------------- Ollama Async Response End ----------------------------------------
DEBUG Added RunOutput to Agent Session
DEBUG Created or updated AgentSession record: 5ef29944-3b94-4ad3-adeb-c6247d4427ef
DEBUG ************************** Agent Run End: 60e0e76c-d2cd-4455-8b68-2c10b4969fdf ***************************

Tool declaration is as:

@tool(name=“open_ticket”, description=“Abre um chamado de suporte com os dados coletados do usuário.”)
def open_ticket(step_input: StepInput) → StepOutput:

Please, let me know if some other information is need to get a clearer view of the problem.

Hey @fabriziorocha, thanks for reaching out and supporting Agno. I’ve shared this with the team, we’re working through all requests one by one and will get back to you soon.If it’s urgent, please let us know. We appreciate your patience!

Hi @fabriziorocha we cant yet access the step_input in a tool function like you have.
the workflow tools are just a workflow called by an agent using a tool.

see here- Workflow Tools - Agno the agent decides what data to pass etc.