(
&mut self,
tool_call_id: impl Into<String>,
name: impl Into<String>,
content: impl Into<String>,
is_error: bool,
)
| 104 | } |
| 105 | |
| 106 | pub fn add_tool_result( |
| 107 | &mut self, |
| 108 | tool_call_id: impl Into<String>, |
| 109 | name: impl Into<String>, |
| 110 | content: impl Into<String>, |
| 111 | is_error: bool, |
| 112 | ) { |
| 113 | self.messages.push(AgentMessage::tool_result( |
| 114 | tool_call_id, |
| 115 | name, |
| 116 | content, |
| 117 | is_error, |
| 118 | )); |
| 119 | } |
| 120 | |
| 121 | pub fn to_provider_messages(&self) -> Vec<opencode_provider::Message> { |
| 122 | self.messages |
no outgoing calls
no test coverage detected