aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/aflow/runner_test.go
Commit message (Collapse)AuthorAgeFilesLines
* pkg/aflow: add Flow.Consts instead of ProvideDmitry Vyukov2026-03-091-4/+8
| | | | | | | | | 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: refactor the LLM summarization testDmitry Vyukov2026-01-301-1/+7
| | | | | | | | | It's very inconvinient to hardcode exact LLM replies in this test, because it's hard to understand when exactly it will be asked to summarize. It's easy to make a bug in the test, and provide summary reply when it wasn't asked to. Instead support proving full generateContent callback, and just model what an LLM would do -- provide summary only when it's asked to.
* pkg/aflow: reduce size of golden test filesDmitry Vyukov2026-01-301-2/+12
| | | | Don't memorize repeated request configs.
* pkg/aflow: handle input token overflow for LLM toolsDmitry Vyukov2026-01-271-2/+5
| | | | | | | Handle LLM tool input token overflow by removing the last tool reply, and replacing it with an order to answer right now. I've seen an LLM tool went into too deap research and in the end just overflowed input tokens. It could provide at least some answer instead.
* pkg/aflow: refactor in preparation for DoWhileDmitry Vyukov2026-01-241-4/+20
| | | | | | | | A bunch of NFC refactorings: - split action verification into 2 phases (inputs/outputs) - change how LLMTool is verified - remove some unused fields/parameters - improve error messages a bit
* pkg/aflow: refactor testsDmitry Vyukov2026-01-231-0/+118
Add helper function that executes test workflows, compares results (trajectory, LLM requests) against golden files, and if requested updates these golden files.