aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/aflow/func_tool.go
Commit message (Collapse)AuthorAgeFilesLines
* syz-agent: add MCP serverDmitry Vyukov2026-02-181-2/+4
| | | | | | The MCP server exports all aflow tools (and actions as tools) we have. Fixes #6763
* pkg/aflow/tool/grepper: add the toolDmitry Vyukov2026-02-021-4/+15
| | | | | | Add a tool that executes git grep with the given expression. It can handle long tail of cases that codesearcher can't handle, while still providing less output than reading whole files.
* pkg/aflow: add helper for tool testingDmitry Vyukov2026-01-261-0/+19
| | | | Add simple codeeditor tests to test testing.
* pkg/aflow: make BadCallError format error messageDmitry Vyukov2026-01-261-3/+3
|
* pkg/aflow: inject tool errors into trajectoryDmitry Vyukov2026-01-211-12/+1
| | | | | | | | | | Currently we handle several errors in LLMAgent (wrong tool name, wrong tool arguments), and return the error to LLM, but nothing is injected into the trajectory wrt what happened. This makes trajectory incomplete and confusing, one just sees repeated LLM calls w/o understanding what caused them. Inject these tool failures into the trace, so that it's clear what happened.
* pkg/aflow: add BadCallErrorDmitry Vyukov2026-01-201-0/+13
| | | | | | | | | | The error allows tools to communicate that an error is not an infrastructure error that must fail the whole workflow, but rather a bad tool invocation by an LLM (e.g. asking for a non-existent file contents). Previously in the codesearcher tool we used a separate Missing bool to communicate that. With the error everything just becomes cleaner and nicer. The errors also allows all other tools to communicate any errors to the LLM when the normal results cannot be provided and don't make sense.
* pkg/aflow: handle common LLM mis-behaviors wrt tool callingDmitry Vyukov2026-01-201-2/+8
| | | | | | | | | | | | | Gracefully handle (reply to LLM with error): - incorrect tool name - incorrect tool arg type - missing tool arg Silently handle: - more than one call to set-results - excessive tool args Fixes #6604
* pkg/aflow: add package for agentic workflowsDmitry Vyukov2026-01-091-0/+71