Files
darthrubik 2f0a2cb089 Refactor Client::chat to return Message instead of ChatResponse
- Changed Client::chat return type from ChatResponse to Message
- Updated OllamaClient and DebugClient to extract message from response
- Simplified Harness to work directly with Message
- ChatResponse is still parsed internally for Usage info logging
2026-06-03 16:14:07 -05:00

16 lines
430 B
C++

#pragma once
#include "json_types.hpp"
#include <string>
#include <vector>
#include <expected>
#include "tool.hpp"
class Client {
public:
virtual ~Client() = default;
virtual std::expected<Message, std::string> chat(const std::vector<Message>& messages,
const std::vector<Tool>& tools) const = 0;
virtual std::expected<std::vector<std::string>, std::string> list_models() const = 0;
};