Skip to main content

text_result

Function text_result 

Source
pub fn text_result(s: impl Into<String>) -> CallToolResult
Expand description

Wrap a string as a successful single-text-content tool result. The idiomatic return for a skill body that produced one textual answer (often a JSON string built with serde_json).