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

Method function_response

crates/opencode-provider/src/vertex.rs:355–364  ·  view source on GitHub ↗
(name: &str, response: &str)

Source from the content-addressed store, hash-verified

353 }
354
355 fn function_response(name: &str, response: &str) -> Self {
356 Self {
357 text: None,
358 function_call: None,
359 function_response: Some(VertexFunctionResponse {
360 name: name.to_string(),
361 response: serde_json::json!({ "content": response }),
362 }),
363 }
364 }
365}
366
367#[derive(Debug, Serialize, Deserialize)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected