feat(clients): models: Gemini on Vertex, Model Garden, Claude, endpoint models, media, VertexModel
One call table verified against Discovery (29 calls), live-verified read-only with an express key and a service account token, /agent/models example routes. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
#pragma once
|
||||
|
||||
// Base of every service in this module: a Service that owns a VertexTarget
|
||||
// and a CallPlanner, and runs planned calls over the shared GoogleClient.
|
||||
|
||||
#include <functional>
|
||||
|
||||
#include "google/models/json_read.h"
|
||||
#include "google/models/planner.h"
|
||||
#include "google/service.h"
|
||||
|
||||
namespace molo::google::models {
|
||||
|
||||
class VertexService : public Service {
|
||||
public:
|
||||
VertexService(std::shared_ptr<GoogleClient> client, VertexTarget target,
|
||||
std::string name);
|
||||
|
||||
const VertexTarget& target() const { return planner_.target(); }
|
||||
const CallPlanner& planner() const { return planner_; }
|
||||
|
||||
protected:
|
||||
clients::body::Json run(const PlannedCall& call) const;
|
||||
void run_stream(const PlannedCall& call,
|
||||
const GoogleClient::EventSink& sink) const;
|
||||
// Single "{publisher}/{model}" argument map.
|
||||
static CallPlanner::Args model_args(const std::string& publisher,
|
||||
const std::string& model);
|
||||
|
||||
CallPlanner planner_;
|
||||
};
|
||||
|
||||
} // namespace molo::google::models
|
||||
Reference in New Issue
Block a user