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

Method text

crates/opencode-provider/src/vertex.rs:336–342  ·  view source on GitHub ↗
(t: &str)

Source from the content-addressed store, hash-verified

334
335impl VertexPart {
336 fn text(t: &str) -> Self {
337 Self {
338 text: Some(t.to_string()),
339 function_call: None,
340 function_response: None,
341 }
342 }
343
344 fn function_call(name: &str, args: serde_json::Value) -> Self {
345 Self {

Callers 2

chatMethod · 0.45
chat_streamMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected