mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-10-03 06:53:29 +00:00
14 lines
453 B
Python
14 lines
453 B
Python
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
from agent.server import _anthropic_effort_for, _anthropic_thinking_for
|
||
|
|
|
||
|
|
|
||
|
|
def test_anthropic_uses_adaptive_thinking_and_effort() -> None:
|
||
|
|
assert _anthropic_thinking_for("high") == {"type": "adaptive"}
|
||
|
|
assert _anthropic_effort_for("high") == "high"
|
||
|
|
|
||
|
|
|
||
|
|
def test_anthropic_ignores_unknown_effort() -> None:
|
||
|
|
assert _anthropic_thinking_for("unknown") is None
|
||
|
|
assert _anthropic_effort_for("unknown") is None
|