68 const std::string& systemPrompt()
const;
74 template<
typename Func>
77 return tools_.addTool(func);
81 void addTool(std::unique_ptr<ChatTool> tool);
96 void setClient(std::unique_ptr<LLMClient> client);
124 std::string handleToolCall(
const JsonValue& toolCall);
149 const std::string&
lastError()
const {
return lastError_; }
160 std::string systemPrompt_{};
163 std::unique_ptr<LLMClient> client_{};
164 std::string lastError_{};
165 int maxToolIterations_{10};