Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion acceleration/internal/store/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions acceleration/internal/store/tool_groups_migration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion acceleration/internal/store/usage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading