Documentation
¶
Overview ¶
Package boundedresult defines the canonical bounded-result contract shared by DSL validation, code generation, and runtime projection.
Contract:
- Canonical bounded fields are owned by loom-mcp, not by authored semantic tool result shapes.
- returned/truncated are always required for bounded successful results.
- total/refinement_hint/next_cursor are optional and emitted only when set.
Index ¶
Constants ¶
View Source
const ( // FieldReturned is the canonical count of items present in this response. FieldReturned = "returned" // FieldTotal is the optional total number of matching items before truncation. FieldTotal = "total" // FieldTruncated indicates whether runtime caps/truncation were applied. FieldTruncated = "truncated" // FieldRefinementHint is optional guidance for narrowing a truncated query. FieldRefinementHint = "refinement_hint" )
Variables ¶
This section is empty.
Functions ¶
func CanonicalFieldNames ¶
CanonicalFieldNames returns canonical bounded-result field names and includes nextCursorField when non-empty.
func HasContinuation ¶
HasContinuation reports whether a truncated result carries either a paging cursor or refinement guidance.
func OptionalFieldNames ¶
OptionalFieldNames returns canonical bounded-result fields that must remain optional in JSON schemas and result payloads.
func RequiredFieldNames ¶
func RequiredFieldNames() []string
RequiredFieldNames returns canonical bounded-result fields that are always required for successful bounded results.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.