MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / tool_result

Method tool_result

crates/opencode-agent/src/message.rs:66–77  ·  view source on GitHub ↗
(
        _tool_call_id: impl Into<String>,
        _name: impl Into<String>,
        content: impl Into<String>,
        _is_error: bool,
    )

Source from the content-addressed store, hash-verified

64 }
65
66 pub fn tool_result(
67 _tool_call_id: impl Into<String>,
68 _name: impl Into<String>,
69 content: impl Into<String>,
70 _is_error: bool,
71 ) -> Self {
72 Self {
73 role: MessageRole::Tool,
74 content: content.into(),
75 tool_calls: vec![],
76 }
77 }
78}
79
80#[derive(Debug, Clone, Serialize, Deserialize)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected