diff --git a/acceleration/internal/store/models.go b/acceleration/internal/store/models.go index 61d8b82a8..cd08f6901 100644 --- a/acceleration/internal/store/models.go +++ b/acceleration/internal/store/models.go @@ -653,7 +653,7 @@ type AgentConfig struct { // EpisodeCards off; WritesCards is the two together. EpisodeCardsRecord bool `bun:"episode_cards_record,notnull"` // ToolGroups are the functions an SDK provides that the config's sessions may offer, and - // how each group is loaded (20270102090000_agent_config_tool_groups.sql). A function no + // how each group is loaded (20270103090000_agent_config_tool_groups.sql). A function no // group names is not offered. The row's progressive_tools and tool_output_retention // columns, which groups and connector bindings replaced, are not modelled: a router still // running the release before reads them, so they are left in place. diff --git a/acceleration/internal/store/tool_groups_migration_test.go b/acceleration/internal/store/tool_groups_migration_test.go index 2b880f02c..6cd918978 100644 --- a/acceleration/internal/store/tool_groups_migration_test.go +++ b/acceleration/internal/store/tool_groups_migration_test.go @@ -15,10 +15,10 @@ import ( "github.com/GetStream/Vision-Agents/acceleration/migrations" ) -// Versions either side of 20270102090000_agent_config_tool_groups.sql. +// Versions either side of 20270103090000_agent_config_tool_groups.sql. const ( - schemaBeforeToolGroups int64 = 20270101090000 - toolGroupsVersion int64 = 20270102090000 + schemaBeforeToolGroups int64 = 20270102090000 + toolGroupsVersion int64 = 20270103090000 ) // ToolGroupsMigrationSuite stops a database of its own short of tool groups, writes configs diff --git a/acceleration/internal/store/usage_test.go b/acceleration/internal/store/usage_test.go index 3d1ae0914..d58873a0f 100644 --- a/acceleration/internal/store/usage_test.go +++ b/acceleration/internal/store/usage_test.go @@ -530,7 +530,7 @@ func (s *StoreSuite) TestARedactedCallStillReportsWhatItAndItsToolCost() { s.calledTool(session, "one-1", "lookup_order", s.base, map[string]any{"call_id": "c1", "loading": ToolLoadingSummary, "definition_tokens": 461, "summary_tokens": 84}, map[string]any{"call_id": "c1", "arguments": `{"order":"A-1"}`, "tokens": 250}) - _, err := s.store.db.NewUpdate().Model((*AgentResponseItem)(nil)). + _, err := s.store.ShardDB().NewUpdate().Model((*AgentResponseItem)(nil)). Set("redact_at = ?", s.base).Where("session_id = ?", "one").Exec(s.ctx) s.Require().NoError(err) redacted, err := s.store.RedactToolOutput(s.ctx, s.base.Add(time.Hour), 100) diff --git a/acceleration/migrations/20270102090000_agent_config_tool_groups.sql b/acceleration/migrations/20270103090000_agent_config_tool_groups.sql similarity index 100% rename from acceleration/migrations/20270102090000_agent_config_tool_groups.sql rename to acceleration/migrations/20270103090000_agent_config_tool_groups.sql