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

Method assistant_with_tools

crates/opencode-agent/src/message.rs:58–64  ·  view source on GitHub ↗
(content: impl Into<String>, tool_calls: Vec<ToolCall>)

Source from the content-addressed store, hash-verified

56 }
57
58 pub fn assistant_with_tools(content: impl Into<String>, tool_calls: Vec<ToolCall>) -> Self {
59 Self {
60 role: MessageRole::Assistant,
61 content: content.into(),
62 tool_calls,
63 }
64 }
65
66 pub fn tool_result(
67 _tool_call_id: impl Into<String>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected