Files
moloapp/src/google/sessions/sessions.h
T
retoorandClaude Sonnet 5.5 a3396bfc68 feat(clients): sessions+registry+optimize+armor: close gaps, loud list truncation, shared Gemini adapter
sessions: operations get/list/cancel/delete/wait for engine, session, memory and
serving profile; servingProfiles CRUD. registry: ListResult with truncated flag,
v1alpha twins, gateway/policy operations, authz IAM, deny policy update, boundary
patch/bindings. optimize: make_gemini_model over models::VertexModel (DirectModel
removed), generateSyntheticData, online evaluator operations, trace/log writers.
armor: SecurityAdmin for all SCC v2 methods (attack exposure excluded), documented
agent threat categories, floor settings fixed to location global after live run.
check_discovery.py of all four enforce coverage.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 05:43:13 +02:00

40 lines
1.5 KiB
C++

#pragma once
// Agent Sessions: sessions and their events under one Agent Engine
// (reasoningEngines) resource. Every call is a row in calls.h.
#include <memory>
#include <string>
#include <vector>
#include "google/sessions/engine_service.h"
#include "google/sessions/session_types.h"
namespace molo::google::sessions {
class Sessions : public EngineService {
public:
// `sleeper` replaces the real sleep between operation polls (tests).
Sessions(std::shared_ptr<GoogleClient> client, EngineName engine,
Sleeper sleeper = nullptr);
Session create(const SessionSpec& spec) const; // waits for the operation
Session get(const std::string& session_id) const;
std::vector<Session> list(const SessionListOptions& options = {}) const;
Session patch(const SessionPatch& patch) const;
// Destructive: explicit method, waits for the delete operation.
void delete_session(const std::string& session_id) const;
// Rewrites the event history (summary and/or edits); waits.
void compact(const std::string& session_id, const CompactRequest& request) const;
void append_event(const std::string& session_id, const SessionEvent& event) const;
std::vector<SessionEvent> list_events(const std::string& session_id,
const EventListOptions& options = {}) const;
// Operations that belong to one session (create, compact, delete runs).
std::vector<Operation> list_session_operations(
const std::string& session_id, const OperationListOptions& options = {}) const;
};
} // namespace molo::google::sessions