MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / _send_message_async

Function _send_message_async

tests/lib/test_credentials.py:2818–2823  ·  view source on GitHub ↗
(client: AsyncAnthropic)

Source from the content-addressed store, hash-verified

2816
2817
2818async def _send_message_async(client: AsyncAnthropic) -> None:
2819 await client.messages.create(
2820 max_tokens=1,
2821 model="claude-opus-4-5",
2822 messages=[{"role": "user", "content": "hi"}],
2823 )
2824
2825
2826@pytest.mark.usefixtures("clean_env", "no_default_creds_file")

Calls 1

createMethod · 0.45

Tested by

no test coverage detected