2f0a2cb089
- 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
16 lines
430 B
C++
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;
|
|
};
|