Skip to main content

result_content_text

Function result_content_text 

Source
fn result_content_text(content: &Value) -> String
Expand description

A tool result’s text. A plain string is used as-is; anything else (the common [{"type":"text","text":…}] block array, or a bare object) falls back to compact JSON, same as before.