MCPcopy Create free account
hub / github.com/docker/docker-agent / TestExec_OpenAI_WithThinkingBudget

Function TestExec_OpenAI_WithThinkingBudget

e2e/exec_test.go:28–35  ·  view source on GitHub ↗

TestExec_OpenAI_WithThinkingBudget tests that when thinking_budget is explicitly configured in the YAML, thinking is enabled by default.

(t *testing.T)

Source from the content-addressed store, hash-verified

26// TestExec_OpenAI_WithThinkingBudget tests that when thinking_budget is explicitly configured
27// in the YAML, thinking is enabled by default.
28func TestExec_OpenAI_WithThinkingBudget(t *testing.T) {
29 t.Parallel()
30 out := runCLI(t, "run", "--exec", "testdata/basic_with_thinking.yaml", "What's 2+2?")
31
32 // With thinking_budget explicitly configured, response should include reasoning
33 // The output format includes the reasoning summary when thinking is enabled
34 require.Contains(t, out, "4")
35}
36
37func TestExec_OpenAI_ToolCall(t *testing.T) {
38 t.Parallel()

Callers

nothing calls this directly

Calls 1

runCLIFunction · 0.85

Tested by

no test coverage detected