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

Function _result_content

tests/lib/tools/test_session_runner.py:131–134  ·  view source on GitHub ↗

The content blocks the runner computed and posted back, as carried in `result` (the flat `content` convenience field was removed).

(item: DispatchedToolCall)

Source from the content-addressed store, hash-verified

129
130
131def _result_content(item: DispatchedToolCall) -> Any:
132 """The content blocks the runner computed and posted back, as carried in
133 `result` (the flat `content` convenience field was removed)."""
134 return cast(Any, item.result)["content"]
135
136
137def _result_text(item: DispatchedToolCall) -> str:

Callers 2

_result_textFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected