aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/aflow/func_tool_test.go
Commit message (Collapse)AuthorAgeFilesLines
* pkg/aflow: add Flow.Consts instead of ProvideDmitry Vyukov3 days1-0/+1
| | | | | | | | | There is no point in using Provide more than once, and anywhere besides the first action of a flow. So it's not really an action, but more of a flow property. Add Flow.Consts field to handle this case better. Also provide slightly less verbose syntax by using a map instead of a struct, and add tests.
* pkg/aflow: abstract away LLM temperatureDmitry Vyukov2026-02-021-1/+1
| | | | | | | | | | Introduce abstract "task type" for LLM agents instead of specifying temperature explicitly for each agent. This has 2 advantages: - we don't hardcode it everywhere, and can change centrally as our understanding of the right temperature evolves - we can control other LLM parameters (topn/topk) using task type as well Update #6576
* pkg/aflow: refactor testsDmitry Vyukov2026-01-231-89/+36
| | | | | | Add helper function that executes test workflows, compares results (trajectory, LLM requests) against golden files, and if requested updates these golden files.
* pkg/aflow: cache LLM requestsDmitry Vyukov2026-01-211-1/+2
| | | | | | Using cached replies is faster, cheaper, and more reliable. Espcially handy during development when the same workflows are retried lots of times with some changes.
* pkg/aflow: add BadCallErrorDmitry Vyukov2026-01-201-0/+111
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.