aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/aflow/testdata/TestLLMTool.trajectory.json
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2026-01-22 11:48:05 +0100
committerDmitry Vyukov <dvyukov@google.com>2026-01-23 09:36:05 +0000
commit778c365cd9979cc5ab5eb7df8e7ec5d1ab834495 (patch)
treee65d67a8e17d231f97b9bead6a5fe24625674cfb /pkg/aflow/testdata/TestLLMTool.trajectory.json
parent105fca7bca1cf22d126f02ee395e0cd7c8d7469a (diff)
pkg/aflow: add LLMTool
LLMTool acts like a tool for the parent LLM, but is itself implemented as an LLM agent. It can have own tools, different from the parent LLM agent. It can do complex multi-step research, and provide a concise answer to the parent LLM without polluting its context window.
Diffstat (limited to 'pkg/aflow/testdata/TestLLMTool.trajectory.json')
-rw-r--r--pkg/aflow/testdata/TestLLMTool.trajectory.json297
1 files changed, 297 insertions, 0 deletions
diff --git a/pkg/aflow/testdata/TestLLMTool.trajectory.json b/pkg/aflow/testdata/TestLLMTool.trajectory.json
new file mode 100644
index 000000000..98b091a78
--- /dev/null
+++ b/pkg/aflow/testdata/TestLLMTool.trajectory.json
@@ -0,0 +1,297 @@
+[
+ {
+ "Seq": 0,
+ "Nesting": 0,
+ "Type": "flow",
+ "Name": "test",
+ "Started": "0001-01-01T00:00:01Z"
+ },
+ {
+ "Seq": 1,
+ "Nesting": 1,
+ "Type": "agent",
+ "Name": "smarty",
+ "Model": "model",
+ "Started": "0001-01-01T00:00:02Z",
+ "Instruction": "Do something!\nPrefer calling several tools at the same time to save round-trips.\n",
+ "Prompt": "Prompt"
+ },
+ {
+ "Seq": 2,
+ "Nesting": 2,
+ "Type": "llm",
+ "Name": "smarty",
+ "Model": "model",
+ "Started": "0001-01-01T00:00:03Z"
+ },
+ {
+ "Seq": 2,
+ "Nesting": 2,
+ "Type": "llm",
+ "Name": "smarty",
+ "Model": "model",
+ "Started": "0001-01-01T00:00:03Z",
+ "Finished": "0001-01-01T00:00:04Z"
+ },
+ {
+ "Seq": 3,
+ "Nesting": 2,
+ "Type": "tool",
+ "Name": "researcher",
+ "Started": "0001-01-01T00:00:05Z",
+ "Args": {
+ "Question": "What do you think?"
+ }
+ },
+ {
+ "Seq": 4,
+ "Nesting": 3,
+ "Type": "agent",
+ "Name": "researcher",
+ "Model": "sub-agent-model",
+ "Started": "0001-01-01T00:00:06Z",
+ "Instruction": "researcher instruction\nPrefer calling several tools at the same time to save round-trips.\n",
+ "Prompt": "What do you think?"
+ },
+ {
+ "Seq": 5,
+ "Nesting": 4,
+ "Type": "llm",
+ "Name": "researcher",
+ "Model": "sub-agent-model",
+ "Started": "0001-01-01T00:00:07Z"
+ },
+ {
+ "Seq": 5,
+ "Nesting": 4,
+ "Type": "llm",
+ "Name": "researcher",
+ "Model": "sub-agent-model",
+ "Started": "0001-01-01T00:00:07Z",
+ "Finished": "0001-01-01T00:00:08Z"
+ },
+ {
+ "Seq": 6,
+ "Nesting": 4,
+ "Type": "tool",
+ "Name": "researcher-tool",
+ "Started": "0001-01-01T00:00:09Z",
+ "Args": {
+ "Something": "subtool input 1"
+ }
+ },
+ {
+ "Seq": 6,
+ "Nesting": 4,
+ "Type": "tool",
+ "Name": "researcher-tool",
+ "Started": "0001-01-01T00:00:09Z",
+ "Finished": "0001-01-01T00:00:10Z",
+ "Args": {
+ "Something": "subtool input 1"
+ },
+ "Results": {}
+ },
+ {
+ "Seq": 7,
+ "Nesting": 4,
+ "Type": "llm",
+ "Name": "researcher",
+ "Model": "sub-agent-model",
+ "Started": "0001-01-01T00:00:11Z"
+ },
+ {
+ "Seq": 7,
+ "Nesting": 4,
+ "Type": "llm",
+ "Name": "researcher",
+ "Model": "sub-agent-model",
+ "Started": "0001-01-01T00:00:11Z",
+ "Finished": "0001-01-01T00:00:12Z"
+ },
+ {
+ "Seq": 4,
+ "Nesting": 3,
+ "Type": "agent",
+ "Name": "researcher",
+ "Model": "sub-agent-model",
+ "Started": "0001-01-01T00:00:06Z",
+ "Finished": "0001-01-01T00:00:13Z",
+ "Instruction": "researcher instruction\nPrefer calling several tools at the same time to save round-trips.\n",
+ "Prompt": "What do you think?",
+ "Reply": "Nothing."
+ },
+ {
+ "Seq": 3,
+ "Nesting": 2,
+ "Type": "tool",
+ "Name": "researcher",
+ "Started": "0001-01-01T00:00:05Z",
+ "Finished": "0001-01-01T00:00:14Z",
+ "Args": {
+ "Question": "What do you think?"
+ },
+ "Results": {
+ "Answer": "Nothing."
+ }
+ },
+ {
+ "Seq": 8,
+ "Nesting": 2,
+ "Type": "llm",
+ "Name": "smarty",
+ "Model": "model",
+ "Started": "0001-01-01T00:00:15Z"
+ },
+ {
+ "Seq": 8,
+ "Nesting": 2,
+ "Type": "llm",
+ "Name": "smarty",
+ "Model": "model",
+ "Started": "0001-01-01T00:00:15Z",
+ "Finished": "0001-01-01T00:00:16Z"
+ },
+ {
+ "Seq": 9,
+ "Nesting": 2,
+ "Type": "tool",
+ "Name": "researcher",
+ "Started": "0001-01-01T00:00:17Z",
+ "Args": {
+ "Question": "But really?"
+ }
+ },
+ {
+ "Seq": 10,
+ "Nesting": 3,
+ "Type": "agent",
+ "Name": "researcher",
+ "Model": "sub-agent-model",
+ "Started": "0001-01-01T00:00:18Z",
+ "Instruction": "researcher instruction\nPrefer calling several tools at the same time to save round-trips.\n",
+ "Prompt": "But really?"
+ },
+ {
+ "Seq": 11,
+ "Nesting": 4,
+ "Type": "llm",
+ "Name": "researcher",
+ "Model": "sub-agent-model",
+ "Started": "0001-01-01T00:00:19Z"
+ },
+ {
+ "Seq": 11,
+ "Nesting": 4,
+ "Type": "llm",
+ "Name": "researcher",
+ "Model": "sub-agent-model",
+ "Started": "0001-01-01T00:00:19Z",
+ "Finished": "0001-01-01T00:00:20Z"
+ },
+ {
+ "Seq": 12,
+ "Nesting": 4,
+ "Type": "tool",
+ "Name": "researcher-tool",
+ "Started": "0001-01-01T00:00:21Z",
+ "Args": {
+ "Something": "subtool input 2"
+ }
+ },
+ {
+ "Seq": 12,
+ "Nesting": 4,
+ "Type": "tool",
+ "Name": "researcher-tool",
+ "Started": "0001-01-01T00:00:21Z",
+ "Finished": "0001-01-01T00:00:22Z",
+ "Args": {
+ "Something": "subtool input 2"
+ },
+ "Results": {}
+ },
+ {
+ "Seq": 13,
+ "Nesting": 4,
+ "Type": "llm",
+ "Name": "researcher",
+ "Model": "sub-agent-model",
+ "Started": "0001-01-01T00:00:23Z"
+ },
+ {
+ "Seq": 13,
+ "Nesting": 4,
+ "Type": "llm",
+ "Name": "researcher",
+ "Model": "sub-agent-model",
+ "Started": "0001-01-01T00:00:23Z",
+ "Finished": "0001-01-01T00:00:24Z"
+ },
+ {
+ "Seq": 10,
+ "Nesting": 3,
+ "Type": "agent",
+ "Name": "researcher",
+ "Model": "sub-agent-model",
+ "Started": "0001-01-01T00:00:18Z",
+ "Finished": "0001-01-01T00:00:25Z",
+ "Instruction": "researcher instruction\nPrefer calling several tools at the same time to save round-trips.\n",
+ "Prompt": "But really?",
+ "Reply": "Still nothing."
+ },
+ {
+ "Seq": 9,
+ "Nesting": 2,
+ "Type": "tool",
+ "Name": "researcher",
+ "Started": "0001-01-01T00:00:17Z",
+ "Finished": "0001-01-01T00:00:26Z",
+ "Args": {
+ "Question": "But really?"
+ },
+ "Results": {
+ "Answer": "Still nothing."
+ }
+ },
+ {
+ "Seq": 14,
+ "Nesting": 2,
+ "Type": "llm",
+ "Name": "smarty",
+ "Model": "model",
+ "Started": "0001-01-01T00:00:27Z"
+ },
+ {
+ "Seq": 14,
+ "Nesting": 2,
+ "Type": "llm",
+ "Name": "smarty",
+ "Model": "model",
+ "Started": "0001-01-01T00:00:27Z",
+ "Finished": "0001-01-01T00:00:28Z"
+ },
+ {
+ "Seq": 1,
+ "Nesting": 1,
+ "Type": "agent",
+ "Name": "smarty",
+ "Model": "model",
+ "Started": "0001-01-01T00:00:02Z",
+ "Finished": "0001-01-01T00:00:29Z",
+ "Instruction": "Do something!\nPrefer calling several tools at the same time to save round-trips.\n",
+ "Prompt": "Prompt",
+ "Reply": "YES"
+ },
+ {
+ "Seq": 0,
+ "Nesting": 0,
+ "Type": "flow",
+ "Name": "test",
+ "Started": "0001-01-01T00:00:01Z",
+ "Finished": "0001-01-01T00:00:30Z",
+ "Results": {
+ "Reply": "YES"
+ }
+ }
+] \ No newline at end of file