Skip to content

Commit eb6edc6

Browse files
committed
rerun anthropic tests against api
1 parent 0b27ecf commit eb6edc6

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

tests/models/test_anthropic.py

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4964,21 +4964,7 @@ async def test_anthropic_server_tool_pass_history_to_another_provider(
49644964
agent = Agent(anthropic_model, builtin_tools=[WebSearchTool()])
49654965

49664966
result = await agent.run('What day is today?')
4967-
assert result.output == snapshot("""\
4968-
Based on the search results, today is Thursday, August 14, 2025. Here are some additional details about the date:
4969-
4970-
It is the 226th day of the year 2025 in the Gregorian calendar, with 139 days remaining until the end of the year.
4971-
4972-
Some interesting observances for today include:
4973-
It's being celebrated as:
4974-
- Color Book Day
4975-
- National Creamsicle Day
4976-
- National Financial Awareness Day
4977-
- National Navajo Code Talkers Day
4978-
- National Tattoo Removal Day
4979-
- National Wiffle Ball Day
4980-
- Social Security Day\
4981-
""")
4967+
assert result.output == snapshot('Today is November 19, 2025.')
49824968
result = await agent.run('What day is tomorrow?', model=openai_model, message_history=result.all_messages())
49834969
assert result.new_messages() == snapshot(
49844970
[
@@ -4989,16 +4975,16 @@ async def test_anthropic_server_tool_pass_history_to_another_provider(
49894975
ModelResponse(
49904976
parts=[
49914977
TextPart(
4992-
content='Tomorrow will be **Friday, August 15, 2025**.',
4993-
id='msg_689dc4acfa488196a6b1ec0ebd3bd9520afe80ec3d42722e',
4978+
content='Tomorrow will be November 20, 2025.',
4979+
id='msg_0b7c351e904c86b300691e4f0dbb64819cbceace3a975191e4',
49944980
)
49954981
],
4996-
usage=RequestUsage(input_tokens=458, output_tokens=17, details={'reasoning_tokens': 0}),
4982+
usage=RequestUsage(input_tokens=329, output_tokens=13, details={'reasoning_tokens': 0}),
49974983
model_name='gpt-4.1-2025-04-14',
49984984
timestamp=IsDatetime(),
49994985
provider_name='openai',
50004986
provider_details={'finish_reason': 'completed'},
5001-
provider_response_id='resp_689dc4abe31c81968ed493d15d8810fe0afe80ec3d42722e',
4987+
provider_response_id='resp_0b7c351e904c86b300691e4f0cc554819c934fb679b1a126be',
50024988
finish_reason='stop',
50034989
run_id=IsStr(),
50044990
),

0 commit comments

Comments
 (0)