MCPcopy Create free account
hub / github.com/compozy/agh / Validate

Method Validate

internal/store/types.go:191–199  ·  view source on GitHub ↗

Validate ensures the query is internally consistent.

()

Source from the content-addressed store, hash-verified

189
190// Validate ensures the query is internally consistent.
191func (q EventQuery) Validate() error {
192 if err := requirePositiveLimit(q.Limit, "event limit"); err != nil {
193 return err
194 }
195 if q.AfterSequence < 0 {
196 return fmt.Errorf("store: invalid event after sequence %d", q.AfterSequence)
197 }
198 return nil
199}
200
201// TurnHistory groups ordered events by their turn identifier.
202type TurnHistory struct {

Callers 1

eventQueryMethod · 0.95

Calls 1

requirePositiveLimitFunction · 0.85

Tested by

no test coverage detected