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

Method assistant

crates/opencode-agent/src/message.rs:50–56  ·  view source on GitHub ↗
(content: impl Into<String>)

Source from the content-addressed store, hash-verified

48 }
49
50 pub fn assistant(content: impl Into<String>) -> Self {
51 Self {
52 role: MessageRole::Assistant,
53 content: content.into(),
54 tool_calls: Vec::new(),
55 }
56 }
57
58 pub fn assistant_with_tools(content: impl Into<String>, tool_calls: Vec<ToolCall>) -> Self {
59 Self {

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected