refactor: remove agent mode and related functionality; update help and README
This commit is contained in:
@@ -42,20 +42,6 @@ impl LlmClient {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn chat(&self, messages: &[ChatMessage]) -> Result<String> {
|
||||
let response = self.chat_with_tools(messages, None)?;
|
||||
Ok(response.content.unwrap_or_default())
|
||||
}
|
||||
|
||||
pub fn chat_with_tools(
|
||||
&self,
|
||||
messages: &[ChatMessage],
|
||||
tools: Option<Vec<ToolDef>>,
|
||||
) -> Result<ChatMessage> {
|
||||
let (msg, _usage) = self.chat_with_tools_non_streaming(messages, tools)?;
|
||||
Ok(msg)
|
||||
}
|
||||
|
||||
pub fn chat_with_tools_non_streaming(
|
||||
&self,
|
||||
messages: &[ChatMessage],
|
||||
|
||||
Reference in New Issue
Block a user