74 const std::string& systemPrompt()
const;
80 template<
typename Func>
83 return tools_.addTool(func);
87 void addTool(std::unique_ptr<ChatTool> tool);
102 void setClient(std::unique_ptr<LLMClient> client);
130 std::string handleToolCall(
const JsonValue& toolCall);
155 const std::string&
lastError()
const {
return lastError_; }
166 std::string systemPrompt_;
169 std::unique_ptr<LLMClient> client_;
170 std::string lastError_;
171 int maxToolIterations_{10};