feat(clients): sessions: Agent Sessions and Memory Bank, discovery-checked call table, guarded purge, live read probes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
#pragma once
|
||||
|
||||
// Static ceilings for Agent Sessions and Agent Memory Bank. Never autotuned.
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
namespace molo::google::sessions {
|
||||
|
||||
struct SessionsCaps {
|
||||
static constexpr std::size_t kMaxIdChars = 63; // Google: [a-z0-9-], 63
|
||||
static constexpr std::size_t kMaxNameChars = 512; // resource name
|
||||
static constexpr std::size_t kMaxUserIdChars = 128;
|
||||
static constexpr std::size_t kMaxDisplayChars = 128;
|
||||
static constexpr std::size_t kMaxLabels = 20;
|
||||
static constexpr std::size_t kMaxLabelChars = 64; // key and value
|
||||
static constexpr std::size_t kMaxStateBytes = 64 * 1024;
|
||||
static constexpr std::size_t kMaxEventBytes = 256 * 1024;
|
||||
static constexpr std::size_t kMaxFilterChars = 512;
|
||||
static constexpr std::size_t kMaxTimestampChars = 40;
|
||||
static constexpr int kMinTtlSeconds = 24 * 3600; // Google minimum
|
||||
static constexpr long kMaxTtlSeconds = 3650L * 24 * 3600;
|
||||
static constexpr int kPageSize = 100; // Google ceiling
|
||||
static constexpr std::size_t kMaxListPages = 10;
|
||||
static constexpr std::size_t kMaxListItems = 1000;
|
||||
};
|
||||
|
||||
struct MemoryCaps {
|
||||
static constexpr std::size_t kMaxFactChars = 4000;
|
||||
static constexpr std::size_t kMaxQueryChars = 1000;
|
||||
static constexpr std::size_t kMaxScopeEntries = 10;
|
||||
static constexpr std::size_t kMaxScopeChars = 128; // key and value
|
||||
static constexpr std::size_t kMaxTopics = 10;
|
||||
static constexpr std::size_t kMaxTopicLabelChars = 64;
|
||||
static constexpr std::size_t kMaxDirectMemories = 5; // Google
|
||||
static constexpr std::size_t kMaxSourceEvents = 100; // generate from contents
|
||||
static constexpr std::size_t kMaxSourceBytes = 64 * 1024;
|
||||
static constexpr std::size_t kMaxMetadataEntries = 20;
|
||||
static constexpr std::size_t kMaxMetadataChars = 256; // key and string value
|
||||
static constexpr std::size_t kMaxFilterGroups = 10;
|
||||
static constexpr std::size_t kMaxFiltersPerGroup = 10;
|
||||
static constexpr std::size_t kMaxMemoryTypes = 2;
|
||||
static constexpr std::size_t kMaxUpdateMaskChars = 256;
|
||||
static constexpr int kMaxTopK = 50;
|
||||
static constexpr int kDefaultTopK = 5;
|
||||
static constexpr int kPageSize = 100;
|
||||
static constexpr std::size_t kMaxListPages = 10;
|
||||
static constexpr std::size_t kMaxListItems = 1000;
|
||||
};
|
||||
|
||||
} // namespace molo::google::sessions
|
||||
Reference in New Issue
Block a user