Skip to content

Models: G

View as Markdown

The approval a passing promotion waits for.

  • role: Union[Literal['standard', 'senior', 'admin'], str]
  • count: int
  • separate_approver: bool (separateApprover on the wire)

One of a gate's checks, as the promotion records it.

  • name: str
  • passed: bool
  • message: str
  • value: float | str | None (optional)
  • threshold: float | str | None (optional)
  • id: str
  • version: str
  • agent_id: str (agentId on the wire)
  • scope: kindgi.client.LiveScopeTenant | kindgi.client.LiveScopeOrg | kindgi.client.LiveScopeProject | kindgi.client.LiveScopeSegment | kindgi.client.LiveScopeUnrecognized
  • spec: kindgi.client.GatePolicySpec
  • description: str | None (optional)
  • created_at: AwareDatetime (createdAt on the wire)
  • unregistered_at: AwareDatetime | None (unregisteredAt on the wire) (optional)
  • data: list[kindgi.client.GatePolicy]
  • has_more: bool (hasMore on the wire)
  • next_cursor: str | None (nextCursor on the wire) (optional)
  • id: str
  • version: str
  • policy: kindgi.client.GatePolicy | None

What a promotion must show. Every part is optional; an empty spec checks nothing. A promotion must name a comparison (evalRunId) exactly when the spec has comparison, evidence, metrics, replay or onlyRestrictedClasses. Unknown keys are refused.

  • comparison: kindgi.client.Comparison | None (optional)
  • evidence: kindgi.client.Evidence | None (optional)
  • metrics: list[kindgi.client.Metric] | None (optional)
  • replay: kindgi.client.Replay | None (optional)
  • approvals: kindgi.client.Approvals | None (optional)
  • only_restricted_classes: bool | None (onlyRestrictedClasses on the wire) (optional)
  • secret: str
  • root: kindgi.client.OidcIdentityProviderConfig | kindgi.client.SamlIdentityProviderConfig | kindgi.client.GetIdentityProviderResultUnrecognized

A kind this client doesn't know yet, from a newer runtime: the object as it came, every field kept.

  • kind: str
  • arguments: dict[str, str] | None (optional)
  • messages: list[kindgi.client.MCPPromptMessage]
  • id: str
  • project_id: uuid.UUID | None (projectId on the wire) (optional)
  • name: str | None (optional)
  • description: str | None (optional)
  • kind: str
  • check: str
  • config: dict[str, Any] | None (optional)
  • action: kindgi.client.GuardrailAction
  • severity: Optional[Annotated[Union[Literal['info', 'warn', 'error', 'critical'], str], <kindgi.client._open.OpenEnum object at 0x10700bbd0>]] (optional)
  • scope: kindgi.client.GuardrailScope | None (optional)
  • budget: kindgi.client.Budget | None (optional)
  • judge_capabilities: dict[str, Any] | None (judgeCapabilities on the wire) (optional)
  • on_violation: str (on-violation on the wire)
  • retry: kindgi.client.Retry | None (optional)
  • escalate_to: str | None (escalateTo on the wire) (optional)
  • compensate_with: str | None (compensateWith on the wire) (optional)

A turn the guardrail blocked: its run, never its answer.

  • run_id: uuid.UUID (runId on the wire)
  • at: AwareDatetime
  • agent_id: str (agentId on the wire)
  • agent_version: str (agentVersion on the wire)
  • data: list[kindgi.client.Guardrail]
  • next_cursor: str | None (nextCursor on the wire) (optional)
  • has_more: bool (hasMore on the wire)

How many of a guardrail's checks came to each outcome.

  • passed: int
  • violated: int
  • blocked: int
  • errored: int
  • guardrail_id: str (guardrailId on the wire)
  • from_: AwareDatetime (from on the wire)
  • to: AwareDatetime
  • counts: kindgi.client.GuardrailOutcomeCounts
  • by_agent_version: list[kindgi.client.GuardrailOutcomesByAgentVersion] (byAgentVersion on the wire)
  • recent_blocked: list[kindgi.client.GuardrailBlockedRun] (recentBlocked on the wire)
  • recorded_since: AwareDatetime | None (recordedSince on the wire) (optional)

The counts on one agent version's turns.

  • agent_id: str (agentId on the wire)
  • agent_version: str (agentVersion on the wire)
  • passed: int
  • violated: int
  • blocked: int
  • errored: int
  • when: Optional[Annotated[Union[Literal['always', 'ci-only', 'runtime-only'], str], <kindgi.client._open.OpenEnum object at 0x10700bbd0>]] (optional)
  • agents: list[str] | None (optional)
  • flows: list[str] | None (optional)
  • tenants: list[str] | None (optional)