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

Function message_with

tests/test_open_telemetry.py:738–740  ·  view source on GitHub ↗

`MESSAGE` with `iterations` in its usage.

(iterations: list[dict[str, Any]] | None)

Source from the content-addressed store, hash-verified

736
737
738def message_with(iterations: list[dict[str, Any]] | None) -> dict[str, Any]:
739 """`MESSAGE` with `iterations` in its usage."""
740 return {**MESSAGE, "usage": {**MESSAGE["usage"], "iterations": iterations}}
741
742
743REQUEST: dict[str, Any] = {

Calls

no outgoing calls

Tested by

no test coverage detected