You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// With interleaved thinking enabled by default, Anthropic responses include thinking content
73
73
require.Contains(t, out, "--- Agent: root ---")
74
74
require.Contains(t, out, "2 + 2 = 4")
75
75
}
76
76
77
77
funcTestExec_Anthropic_ToolCall(t*testing.T) {
78
-
out:=cagent(t, "exec", "testdata/fs_tools.yaml", "--model=anthropic/claude-sonnet-4-0", "How many files in testdata/working_dir? Only output the number.")
78
+
out:=cagent(t, "run", "--exec", "testdata/fs_tools.yaml", "--model=anthropic/claude-sonnet-4-0", "How many files in testdata/working_dir? Only output the number.")
79
79
80
80
// With interleaved thinking enabled by default, Anthropic responses include thinking content
out:=cagent(t, "exec", "testdata/fs_tools.yaml", "--model=google/gemini-2.5-flash", "How many files in testdata/working_dir? Only output the number.")
106
+
out:=cagent(t, "run", "--exec", "testdata/fs_tools.yaml", "--model=google/gemini-2.5-flash", "How many files in testdata/working_dir? Only output the number.")
107
107
108
108
// With thinking enabled by default (dynamic thinking for Gemini 2.5), responses include thinking content
require.Equal(t, "\n--- Agent: root ---\nThe sum of 2 + 2 is 4.", out)
120
120
}
121
121
122
122
funcTestExec_Mistral_ToolCall(t*testing.T) {
123
-
out:=cagent(t, "exec", "testdata/fs_tools.yaml", "--model=mistral/mistral-small", "How many files in testdata/working_dir? Only output the number.")
123
+
out:=cagent(t, "run", "--exec", "testdata/fs_tools.yaml", "--model=mistral/mistral-small", "How many files in testdata/working_dir? Only output the number.")
out:=cagent(t, "exec", "testdata/file_writer.yaml", "Create a hello.txt file with \"Hello, World!\" content. Try only once. On error, exit without further message.")
129
+
out:=cagent(t, "run", "--exec", "testdata/file_writer.yaml", "Create a hello.txt file with \"Hello, World!\" content. Try only once. On error, exit without further message.")
130
130
131
131
require.Contains(t, out, `Can I run this tool? ([y]es/[a]ll/[n]o)`)
0 commit comments