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

Function assistant

tests/lib/threads/helpers.py:185–186  ·  view source on GitHub ↗
(text: str = "Hi!")

Source from the content-addressed store, hash-verified

183
184
185def assistant(text: str = "Hi!") -> BetaMessageParam:
186 return {"role": "assistant", "content": [{"type": "text", "text": text}]}
187
188
189def tool_use(tool_use_id: str, name: str = "get_weather") -> BetaMessageParam:

Calls

no outgoing calls