| 1128 | |
| 1129 | #[derive(Debug, Deserialize)] |
| 1130 | pub struct AddPartRequest { |
| 1131 | #[serde(rename = "type")] |
| 1132 | pub part_type: String, |
| 1133 | pub text: Option<String>, |
| 1134 | pub tool_call_id: Option<String>, |
| 1135 | pub tool_name: Option<String>, |
| 1136 | pub tool_input: Option<serde_json::Value>, |
| 1137 | pub content: Option<String>, |
| 1138 | pub is_error: Option<bool>, |
| 1139 | } |
| 1140 | |
| 1141 | fn build_message_part(req: AddPartRequest, msg_id: &str) -> Result<opencode_session::MessagePart> { |
| 1142 | let part_type = match req.part_type.as_str() { |
nothing calls this directly
no outgoing calls
no test coverage detected