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
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:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user