test: cover stop contract, execution adapters, checkpointer race and runtime identity
Docker / build (push) Has been cancelled
Test / pytest (ubuntu-latest, 3.12) (push) Has been cancelled
Test / pytest (windows-latest, 3.11) (push) Has been cancelled
Test / pytest (windows-latest, 3.12) (push) Has been cancelled
Lint / ruff (push) Has been cancelled
Test / pytest (ubuntu-latest, 3.11) (push) Has been cancelled
Build / build (push) Has been cancelled

This commit is contained in:
m4
2026-09-13 15:12:17 +08:00
parent ea99ce9f7e
commit d4b53bfb08
37 changed files with 4889 additions and 11 deletions
+8 -4
View File
@@ -67,20 +67,24 @@ def test_k3_chat_plan_freezes_adapter_compiled_parameters():
plan.sdk_params["max_completion_tokens"] = 1
def test_responses_plan_accepts_native_tools_when_capability_is_enabled():
@pytest.mark.parametrize("purpose", ["main_agent", "title", "tool_selector", "deepagents_summarizer"])
@pytest.mark.parametrize("disable_streaming", [True, "tool_calling", False])
def test_responses_plan_accepts_native_tools_when_capability_is_enabled(purpose, disable_streaming):
plan = compile_invocation_plan(
api_mode="responses",
declared_tool_call_transport="native",
supports_tools=True,
purpose="title",
purpose=purpose,
output_token_limit=1_024,
reasoning_effort="disabled",
runtime_provider="openai",
sdk_params={"max_output_tokens": 1_024, "use_responses_api": True},
sdk_params={"max_output_tokens": 1_024, "use_responses_api": True,
"disable_streaming": disable_streaming, "streaming": False},
)
assert plan.tool_call_transport == "native"
assert plan.streaming is False
assert plan.streaming is True
assert plan.sdk_params["disable_streaming"] is False
def test_plan_rejects_runtime_projection_that_disagrees_with_capabilities():