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

Function add

tests/lib/threads/helpers.py:590–591  ·  view source on GitHub ↗
(params: dict[str, Any])

Source from the content-addressed store, hash-verified

588
589def _set_messages(*added: BetaMessageParam) -> Change:
590 def add(params: dict[str, Any]) -> dict[str, Any]:
591 return {**params, "messages": [*params["messages"], *added]}
592
593 def change(runner: Any, _reply: Any, _tool_response: Any) -> None:
594 runner.set_messages_params(add)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected