Core API¶
Generated from the typed public surface.
tesserix_adk.core.ALLOWED_ATTRIBUTES¶
Stability: beta
Build an immutable unordered collection of unique elements.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Abstention¶
Stability: beta
An answer of "I do not know", typed rather than a plausible invented alternative.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ActionClass¶
Stability: beta
A named class of side effect, and where in a call's arguments its money is.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ActionRegistry¶
Stability: beta
Which action class each tool belongs to.
class ActionRegistry(object) {named(self, action_class: 'str') -> 'ActionClass | None'; of(self, tool: 'str') -> 'ActionClass | None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ActionRequest¶
Stability: beta
One action an agent wants to take, and what the runtime knows about it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ActivityClass¶
Stability: beta
What kind of work an activity does, which is what its numbers follow from.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ActivityPolicy¶
Stability: beta
The numbers one activity runs under.
class ActivityPolicy(AdkModel) {attempts_for(self, idempotency: 'IdempotencyPolicy | None', *, keyed: 'bool' = False) -> 'int'; backoff(self, seconds: 'float', *, elapsed: 'float') -> 'Backoff'; retryable(self, failure: 'BaseException') -> 'bool'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.AdkConfig¶
Stability: beta
The kit's resolved configuration. Frozen, fully typed, validated at startup.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.AdkDeprecationWarning¶
Stability: beta
Warns that a public name of the kit is scheduled for removal.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.AdkError¶
Stability: beta
Base class for every error raised by the kit.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.AdkModel¶
Stability: beta
Frozen, strict, and closed to fields it does not declare.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Agent¶
Stability: beta
A declarative description of an agent.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.AgentDefinition¶
Stability: beta
One agent, as the artifact that was reviewed.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.AgentIdentity¶
Stability: beta
What one agent may do on one run: its declaration, cut down to the caller's grant.
class AgentIdentity(object) {check(self, required: 'Iterable[str]', *, where: 'str' = '') -> 'None'; check_live(self, now: 'float', *, where: 'str' = '') -> 'None'; missing(self, required: 'Iterable[str]') -> 'tuple[str, ...]'; narrowed(self, *, agent: 'str', declared: 'Iterable[str]') -> 'Self'; permits(self, scope: 'str') -> 'bool'; unused(self, used: 'Iterable[str]') -> 'tuple[str, ...]'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.AggregationError¶
Stability: beta
Raised when concurrent branches did not add up to the aggregate that was asked for.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Applied¶
Stability: beta
One forward action that really happened, and enough to take it back.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ApprovalBindingError¶
Stability: beta
Raised when a grant is asked to cover something other than what it was shown.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ApprovalDecided¶
Stability: beta
A human answered.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ApprovalDecision¶
Stability: beta
A human's answer about one held call.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ApprovalDeliveryError¶
Stability: beta
Raised when the question could not be put in front of anybody.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ApprovalDenial¶
Stability: beta
What a denied or expired approval means to the run.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ApprovalDeniedError¶
Stability: beta
Raised when a human declined a held tool call.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ApprovalExpiredError¶
Stability: beta
Raised when a decision arrived past the request's time to live.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ApprovalGate¶
Stability: beta · Kind: Protocol
Where a run waits for a human to decide about a tool call.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ApprovalPolicy¶
Stability: beta
When a tool may not run without a human, decided by code rather than by the model.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ApprovalPredicate¶
Stability: beta
Type alias.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ApprovalRecord¶
Stability: beta
A tool call held for a human decision, in a form safe to put in a queue.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ApprovalRequested¶
Stability: beta
A human was asked before something ran.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ApprovalToken¶
Stability: beta
A bearer secret that resolves to one suspended run and one held action.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ApprovalTokenError¶
Stability: beta
Raised when a token cannot buy the decision it was presented for.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ApprovalTransport¶
Stability: beta · Kind: Protocol
How the question reaches whoever answers it, apart from where the run waits.
class ApprovalTransport(Protocol) {deliver(self, record: 'ApprovalRecord') -> 'ApprovalDecision | None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.AttributionError¶
Stability: beta
Raised when spend could not be attributed to the participants that incurred it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.AuditDecision¶
Stability: beta
What was decided about one attempted action.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.AuditEvent¶
Stability: beta
One decision about one attempted action, as it is stored.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.AuditSink¶
Stability: beta · Kind: Protocol
Where decisions are appended, and read back by whoever is accountable for them.
class AuditSink(Protocol) {append(self, event: 'AuditEvent') -> 'AuditEvent'; pseudonymise(self, *, tenant: 'str', subject: 'str') -> 'int'; records(self, *, tenant: 'str', since: 'float' = 0.0, until: 'float | None' = None, decision: 'AuditDecision | None' = None) -> 'tuple[AuditEvent, ...]'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.AuditUnavailableError¶
Stability: beta
Raised when a decision about an autonomous action could not be recorded.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.AuthMethod¶
Stability: beta
How the principal was established, which is what its expiry means.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.AuthenticationError¶
Stability: beta
Raised when a provider rejected the credential, or what it is allowed to reach.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.AuthorisationError¶
Stability: beta
Raised when work needs authority the run's effective scopes do not carry.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.AuthorityRevokedError¶
Stability: beta
Raised when the authority a run was acting on is gone rather than merely stale.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.AutonomyDecision¶
Stability: beta
What the ladder decided, and what has to be recorded about it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.AutonomyGrant¶
Stability: beta
Permission to act unattended, issued by somebody, expiring by itself.
class AutonomyGrant(AdkModel) {covers(self, *, tenant: 'str', user: 'str | None', now: 'float') -> 'bool'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.AutonomyLadder¶
Stability: beta
Resolves one attempted action against the grants that cover it.
class AutonomyLadder(object) {amount_in(self, tool: 'str', arguments: 'Mapping[str, Any]') -> 'Decimal | None'; classify(self, tool: 'str') -> 'str | None'; decide(self, request: 'ActionRequest') -> 'AutonomyDecision'; validate_grants(self) -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.AutonomyLevel¶
Stability: beta
How far a grant lets an agent go before a human is involved.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.AutonomyOutcome¶
Stability: beta
What the ladder decided about one attempted action.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.AutonomyRefusedError¶
Stability: beta
Raised when an action is one no grant could ever have permitted.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Backoff¶
Stability: beta
How long to wait, and whether the wait was cut to fit inside the activity.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.BinaryPart¶
Stability: beta
Bytes in a message — an image, an audio clip, a scanned document.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Bounded¶
Stability: beta
A numeric field that has to stay inside a band.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.BudgetDecision¶
Stability: beta
Whether there is room left, and where there is not.
Typed errors: None declared.
Runnable recipe: examples/budget.py — ceilings are enforced before dispatch.
tesserix_adk.core.BudgetExceeded¶
Stability: beta
A ceiling stopped the work.
Typed errors: None declared.
Runnable recipe: examples/budget.py — ceilings are enforced before dispatch.
tesserix_adk.core.BudgetExceededError¶
Stability: beta
Raised when a run would exceed its ceiling. Raised before the spend, not after.
Typed errors: None declared.
Runnable recipe: examples/budget.py — ceilings are enforced before dispatch.
tesserix_adk.core.BudgetLimits¶
Stability: beta
A ceiling, in every dimension a run can run away in.
Typed errors: None declared.
Runnable recipe: examples/budget.py — ceilings are enforced before dispatch.
tesserix_adk.core.BudgetPolicy¶
Stability: beta · Kind: Protocol
Spend and usage limits applied before and after a metered call.
class BudgetPolicy(Protocol) {check(self) -> 'BudgetDecision'; child(self) -> 'BudgetPolicy'; limits(self) -> 'BudgetLimits'; record(self, usage: 'Usage', *, model_calls: 'int' = 0, tool_calls: 'int' = 0, iterations: 'int' = 0, peer_invocations: 'int' = 0) -> 'None'; reserve(self, estimate: 'int') -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/budget.py — ceilings are enforced before dispatch.
tesserix_adk.core.BudgetScope¶
Stability: beta
Where a set of limits was attached, which is how the effective one is attributed.
Typed errors: None declared.
Runnable recipe: examples/budget.py — ceilings are enforced before dispatch.
tesserix_adk.core.BudgetUnavailableError¶
Stability: beta
Raised when the ledger a shared ceiling lives in cannot be reached.
Typed errors: None declared.
Runnable recipe: examples/budget.py — ceilings are enforced before dispatch.
tesserix_adk.core.CHEAP¶
Stability: beta
The kind of work, named rather than the model that does it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.CHECKPOINT_FORMAT¶
Stability: beta
int([x]) -> integer int(x, base=10) -> integer
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.CURRENT_VERSIONS¶
Stability: beta
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.CachingSecrets¶
Stability: beta
A resolver with a ttl, so a rotated secret is picked up without a restart.
class CachingSecrets(object) {invalidate(self, ref: 'SecretRef') -> 'None'; invalidate_all(self) -> 'None'; resolve(self, ref: 'SecretRef') -> 'SecretStr'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.CachingTenantConfig¶
Stability: beta
A provider in front of a provider, so a limit lookup is not a round trip per run.
class CachingTenantConfig(object) {config_for(self, tenant: 'str') -> 'TenantConfig'; invalidate(self, tenant: 'str') -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.CallCredential¶
Stability: beta · Kind: Protocol
The part of a minted credential a caller renders.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.CancelledError¶
Stability: beta
Raised when a run was cancelled. In-flight work stops; state becomes cancelled.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Capability¶
Stability: beta
A thing a model either does or does not do, named the same way everywhere.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.CapabilityError¶
Stability: beta
Raised when something is asked of a provider that it has not declared it can do.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.CapabilitySet¶
Stability: beta
Runtime representation of an annotated type.
CapabilitySet = typing.Annotated[frozenset[tesserix_adk.core.capabilities.Capability], BeforeValidator(func=<class 'frozenset'>, json_schema_input_type=PydanticUndefined)]
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Ceiling¶
Stability: beta
How much a grant covers, in what, over what window.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.CeilingExceededError¶
Stability: beta
Raised when an action would take more headroom than the ceiling has left.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.CeilingLedger¶
Stability: beta · Kind: Protocol
Reserve before the action, settle after it. Also what a ladder reads headroom from.
class CeilingLedger(Protocol) {commit(self, idempotency_key: 'str') -> 'Hold | None'; committed(self, *, tenant: 'str', action_class: 'str', window_seconds: 'float') -> 'Decimal'; release(self, idempotency_key: 'str') -> 'None'; reserve(self, *, tenant: 'str', action_class: 'str', ceiling: 'Ceiling', amount: 'Decimal', idempotency_key: 'str') -> 'Hold'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ChainedSecrets¶
Stability: beta
Resolvers tried in order, the first that holds the secret answering.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Checkpoint¶
Stability: beta
The frontier of a run, far enough along that another process can carry it on.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.CheckpointBoundary¶
Stability: beta
Where in a turn a checkpoint may be taken.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.CheckpointFormatError¶
Stability: beta
Raised when a checkpoint was written by a kit version this one cannot read.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.CheckpointPolicy¶
Stability: beta
When a run is written down, and how much of it may be.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.CheckpointStore¶
Stability: beta · Kind: Protocol
Where the frontier of a run is kept between processes.
class CheckpointStore(Protocol) {forget(self, run_id: 'str', *, tenant: 'str') -> 'None'; latest(self, run_id: 'str', *, tenant: 'str') -> 'Checkpoint | None'; put(self, checkpoint: 'Checkpoint') -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.CheckpointTooLargeError¶
Stability: beta
Raised when a run's frontier exceeds what a checkpoint may carry.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ChunkingError¶
Stability: beta
Raised when a run of text cannot be divided under the chunk token limit.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Claim¶
Stability: beta
What the store said when a call asked to run.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ClaimCheckPolicy¶
Stability: beta
When a result is checked in, how much of it stays, and how long the rest is kept.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ClaimCheckStore¶
Stability: beta · Kind: Protocol
Where a checked-in result lives until the run that made it is over.
class ClaimCheckStore(Protocol) {fetch(self, handle: 'str', *, tenant: 'str', run_id: 'str') -> 'str'; forget(self, *, tenant: 'str', run_id: 'str' = '') -> 'int'; put(self, handle: 'str', content: 'str', *, tenant: 'str', run_id: 'str', ttl_seconds: 'float') -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ClaimTicket¶
Stability: beta
What replaces an oversized result: the beginning of it, and where the rest is.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ClaimUnavailableError¶
Stability: beta
Raised when a checked-in tool result cannot be produced for the handle asked about.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Classification¶
Stability: beta
What a classifier decided about one passage.
class Classification(AdkModel) {breaches(self, thresholds: 'Thresholds') -> 'tuple[ContentCategory, ...]'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Clock¶
Stability: beta · Kind: Protocol
Source of time, injected so that behaviour under time is testable.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.CommitmentLedger¶
Stability: beta · Kind: Protocol
What a tenant has already committed against an action class in a window.
class CommitmentLedger(Protocol) {committed(self, *, tenant: 'str', action_class: 'str', window_seconds: 'float') -> 'Decimal'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.CompensatedFailure¶
Stability: beta
A run that failed and left nothing applied behind it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Compensating¶
Stability: beta · Kind: Protocol
What the runtime needs of a reversal, satisfied by @compensating_activity.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.CompensationIncomplete¶
Stability: beta
A run that failed and could not put everything back.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.CompensationLedger¶
Stability: beta · Kind: Protocol
Where the record of applied, un-reversed work lives.
class CompensationLedger(Protocol) {forget(self, *, tenant: 'str') -> 'int'; mark(self, reversal: 'Reversal') -> 'None'; outstanding(self, run_id: 'str', *, tenant: 'str', branch: 'str | None' = None) -> 'Sequence[Applied]'; record(self, action: 'Applied') -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ConcurrencyConfig¶
Stability: beta
How wide one turn's tool calls may run, and how long any one of them may take.
class ConcurrencyConfig(AdkModel) {narrowed_to(self, other: 'ConcurrencyConfig | None') -> 'ConcurrencyConfig'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ConfigError¶
Stability: beta
Raised when configuration cannot be resolved, listing every problem at once.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ConfigOverrides¶
Stability: beta
Typed code-layer configuration; unknown or misspelled keys fail static checks.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ConfigProblem¶
Stability: beta
One reason the configuration cannot be used.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ConfigResolution¶
Stability: beta
A resolved configuration together with the provenance of every key.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ConfigurationError¶
Stability: beta
Raised when the kit is assembled in a way that cannot work.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Consumed¶
Stability: beta
What has been spent against a ceiling so far.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ContentBlockedError¶
Stability: beta
Raised when content breaches this tenant's bar for one or more categories.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ContentCategory¶
Stability: beta
What a passage is about, in the terms a policy is written in.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ContentClassifier¶
Stability: beta · Kind: Protocol
Anything that can say what a passage is about.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ContentFilteredError¶
Stability: beta
Raised when a provider refused to process or to return content on policy grounds.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ContentPart¶
Stability: beta
Runtime representation of an annotated type.
ContentPart = typing.Annotated[tesserix_adk.core.primitives.TextPart | tesserix_adk.core.primitives.BinaryPart, FieldInfo(annotation=NoneType, required=True, discriminator='kind')]
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ContentSeverity¶
Stability: beta
How bad, ordered so a threshold is a comparison rather than a lookup table.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ContentSource¶
Stability: beta
Where content came from, in the form a reviewer would go and look it up by.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ContextBudgetError¶
Stability: beta
Raised when a prompt cannot be made to fit the tokens available for it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ContextWindowExceededError¶
Stability: beta
Raised when an assembled prompt is longer than the model declares it can read.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Cost¶
Stability: beta
What one call, or one whole run, came to.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.CostConfidence¶
Stability: beta
How much of the number is known.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.CountSource¶
Stability: beta
Who counted the tokens, which is the difference between a figure and a guess.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.CredentialError¶
Stability: beta
Raised when a tool could not obtain the credential its call needs.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.CredentialExpiredError¶
Stability: beta
Raised when the credential a call needs has lapsed and could not be replaced.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.CredentialSource¶
Stability: beta · Kind: Protocol
Whatever mints per-call credentials — tesserix_adk.tools.CredentialBroker does.
class CredentialSource(Protocol) {for_tool(self, *, identity: 'AgentIdentity', audience: 'str', needs: 'Iterable[str]', run_id: 'str', agent_version: 'str' = Ellipsis) -> 'CallCredential'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Credit¶
Stability: beta
Money coming back, recorded against the class it came back from.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.DEFAULT_ACTIVITY_POLICIES¶
Stability: beta
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.DEFAULT_DETECTORS¶
Stability: beta
Built-in immutable sequence.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.DEFAULT_LEASE¶
Stability: beta
How long a lease lives and when its holder should renew it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.DEFAULT_MAX_EVENT_BYTES¶
Stability: beta
int([x]) -> integer int(x, base=10) -> integer
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.DEFAULT_SUSPENSION_SECONDS¶
Stability: beta
Convert a string or number to a floating-point number, if possible.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.DeadlineConfig¶
Stability: beta
Wall-clock ceilings for a run, in seconds. None means no ceiling at that layer.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.DeclaresEmulation¶
Stability: beta · Kind: Protocol
A provider with an opinion about being stood in for.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.DelegationError¶
Stability: beta
Raised when work handed to a worker did not come back as an answer.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.DelegationLimitError¶
Stability: beta
Raised when one agent may not hand work to another, and the run must say why.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Delivery¶
Stability: beta
What a publisher that cannot deliver means for the run.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.DenyReason¶
Stability: beta
Which layer refused. An operator fixes the setting they own, not the one below it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.DependencyCycleError¶
Stability: beta
Raised when declared dependencies close a loop, so nothing in it could ever start.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Deprecation¶
Stability: beta
A scheduled removal, as promised to consumers.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.DeprecationPolicyError¶
Stability: beta
Raised when a deprecation would break the published versioning policy.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Dispatch¶
Stability: beta
A dependency graph, executed as wide as the dependencies allow.
Typed errors: ConfigurationError, DependencyCycleError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.DispatchNode¶
Stability: beta
One piece of work and what it waits for.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.DispatchResult¶
Stability: beta
What every node in one run of the graph did.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.DuplicateInFlightError¶
Stability: beta
Raised when another worker of the same consumer group is handling this event now.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.EVENT_SCHEMAS¶
Stability: beta
Which model validates which event type at which version, and how to move between them.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.EVENT_SCHEMA_VERSION¶
Stability: beta
int([x]) -> integer int(x, base=10) -> integer
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.EmbeddingDimensionError¶
Stability: beta
Raised when an embedding is not the width the collection was built with.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.EmbeddingUnavailableError¶
Stability: beta
Raised when an ingest cannot embed a batch and stops rather than filling the gap.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Envelope¶
Stability: beta
A persisted payload and the version it was written at.
class Envelope(AdkModel) {digest(self) -> 'str'; opened(self, model: 'type[ModelT]') -> 'ModelT'; preserved(self, model: 'type[ModelT]') -> 'dict[str, Any]'; to_json(self) -> 'str'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.EnvironmentSecrets¶
Stability: beta
Resolution from the process environment, which is the local development path.
class EnvironmentSecrets(object) {resolve(self, ref: 'SecretRef') -> 'SecretStr'; variable_for(self, ref: 'SecretRef') -> 'str'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.EstimateUnavailableError¶
Stability: beta
Raised when a run's cost cannot be estimated on anything better than a guess.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.EvalIncompleteError¶
Stability: beta
Raised when a quality gate was asked to judge a partly scored dataset.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.EventEnvelope¶
Stability: beta
One event as it travels.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.EventIdReuseError¶
Stability: beta
Raised when a different event arrives under an id that is already recorded.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.EventLoopStalledError¶
Stability: beta
Raised when work blocked the event loop instead of awaiting on it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.EventPayload¶
Stability: beta
What happened, as attributes drawn from the allowlist.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.EventPublishError¶
Stability: beta
Raised when an event could not be delivered and the delivery mode says that stops the run.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.EventPublisher¶
Stability: beta · Kind: Protocol
Where events go. Implemented by a broker adapter, faked in tests, or absent.
class EventPublisher(Protocol) {publish(self, event: 'EventEnvelope') -> 'None'; publish_batch(self, events: 'tuple[EventEnvelope, ...]') -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.EventSchemaRegistry¶
Stability: beta
Which model validates which event type at which version, and how to move between them.
class EventSchemaRegistry(object) {current_version(self, event_type: 'EventType') -> 'int'; model_for(self, event_type: 'EventType', version: 'int') -> 'type[EventPayload]'; payload_of(self, envelope: 'EventEnvelope') -> 'EventPayload'; read(self, raw: 'str | bytes') -> 'EventEnvelope'; register(self, model: 'type[EventPayload]') -> 'None'; register_upcaster(self, event_type: 'EventType', *, from_version: 'int', upcast: 'Upcaster') -> 'None'; requires(self, event_type: 'EventType') -> 'int'; schemas(self) -> 'dict[str, dict[str, Any]]'; upcast(self, envelope: 'EventEnvelope') -> 'EventEnvelope'; versions(self, event_type: 'EventType') -> 'tuple[int, ...]'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.EventTooLargeError¶
Stability: beta
Raised when an event is larger than the transport will carry.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.EventType¶
Stability: beta
Everything the kit reports. A consumer switches on this and nothing else.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Eventing¶
Stability: beta
Builds envelopes from payloads and publishes them under one delivery mode.
class Eventing(object) {emit(self, payload: 'EventPayload', *, caused_by: 'EventEnvelope | None' = None) -> 'EventEnvelope | None'; emit_all(self, payloads: 'Iterable[EventPayload]', *, caused_by: 'EventEnvelope | None' = None) -> 'PublishReport'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.EventsReplayed¶
Stability: beta
An operator redelivered dead-lettered events. The audit record of a recovery.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ExpiringCredential¶
Stability: beta · Kind: Protocol
A credential that says when it stops working, so a run can replace it in time.
class ExpiringCredential(CallCredential, Protocol) {expired(self, now: 'float', *, skew: 'float' = Ellipsis) -> 'bool'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ExpiringCredentialSource¶
Stability: beta · Kind: Protocol
A mint whose credentials carry an expiry.
class ExpiringCredentialSource(Protocol) {for_tool(self, *, identity: 'AgentIdentity', audience: 'str', needs: 'Iterable[str]', run_id: 'str', agent_version: 'str' = Ellipsis) -> 'ExpiringCredential'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ExtractionError¶
Stability: beta
Raised when a model's extraction output cannot be trusted as a subgraph.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.FallbackChain¶
Stability: beta
The models one run may be attempted against, in order.
class FallbackChain(AdkModel) {after(self, ref: 'str', *, failed: 'Collection[str]' = ()) -> 'str | None'; refuse_the_excluded(self) -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.FallbackExhaustedError¶
Stability: beta
Raised when every model in a run's chain refused it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.FallbackUnsafeError¶
Stability: beta
Raised when another model cannot be tried without risking a repeated side effect.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.FanOutLimitError¶
Stability: beta
Raised when one turn, or one run, asked for more tool calls than its cap allows.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.FilePromptRegistry¶
Stability: beta
Prompts as one TOML file per name, versions and aliases inside it.
class FilePromptRegistry(object) {get(self, name: 'str', *, version: 'str' = '', alias: 'str' = '', tenant: 'str' = '') -> 'PromptDefinition'; list_versions(self, name: 'str', *, tenant: 'str' = '') -> 'tuple[str, ...]'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.FileTenantConfig¶
Stability: beta
Tenant configuration as one TOML file per tenant in a directory.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.GrantIssuer¶
Stability: beta · Kind: Protocol
Issuing and withdrawing autonomy, which only a human or system identity does.
class GrantIssuer(Protocol) {issue(self, grant: 'AutonomyGrant') -> 'AutonomyGrant'; revoke(self, revocation: 'Revocation') -> 'Revocation'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.GrantReader¶
Stability: beta · Kind: Protocol
What the runtime is allowed to know about grants: what is live, and nothing more.
class GrantReader(Protocol) {grants_for(self, *, tenant: 'str', action_class: 'str') -> 'Sequence[AutonomyGrant]'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.GrantRevokedError¶
Stability: beta
Raised when the grant a run was acting under was withdrawn while it was under way.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.GuardResult¶
Stability: beta
One guard's answer about one piece of content.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.GuardStage¶
Stability: beta
Where in a run a check happened. Carried on every verdict and every refusal.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.GuardVerdict¶
Stability: beta
What a guard decided.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Guardrail¶
Stability: beta · Kind: Protocol
An inline check on what enters a run and on what leaves it.
class Guardrail(Protocol) {check_input(self, content: 'str') -> 'GuardResult'; check_output(self, content: 'str') -> 'GuardResult'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.GuardrailError¶
Stability: beta
Base for what a guard decided and for what it could not decide.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.GuardrailEvaluationError¶
Stability: beta
Raised when a guard could not reach a verdict, which is not consent.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.GuardrailPipeline¶
Stability: beta
An ordered, fail-closed chain of guards over one stage of a run.
class GuardrailPipeline(object) {check_input(self, content: 'str') -> 'str'; check_output(self, content: 'str') -> 'str'; check_stream(self, chunks: 'AsyncIterator[str]') -> 'AsyncIterator[str]'}
Typed errors: ConfigurationError, ProtocolConformanceError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.GuardrailViolationError¶
Stability: beta
Raised when a guardrail rejects content. The step stops; it does not degrade.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.HANDLE_PREFIX¶
Stability: beta
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.HEADER¶
Stability: beta
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.HandoffContractError¶
Stability: beta
Raised when a conversation could not be handed to the agent it was addressed to.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Heartbeat¶
Stability: beta
Progress from a running activity. Never a result, and never part of one.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.HeuristicClassifier¶
Stability: beta
A term-list classifier, so a kit consumer has something before they have a model.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.HistoryUnavailableError¶
Stability: beta
Raised when a resume cannot get back the transcript its checkpoint points at.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Hold¶
Stability: beta
Headroom taken for one action, before the action happens.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.HoldState¶
Stability: beta
Where a reservation got to. Held counts against the ceiling exactly as committed does.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Hook¶
Stability: beta · Kind: Protocol
A policy attached to declared points in the loop.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.HookAction¶
Stability: beta
What a hook may say, ordered from least to most restrictive.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.HookChain¶
Stability: beta
The hooks a runner enforces, in declaration order.
class HookChain(object) {at(self, point: 'HookPoint') -> 'tuple[Hook, ...]'; register(self, hook: 'Hook') -> 'None'; sealed(self) -> 'HookChain'}
Typed errors: HookRegistrationError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.HookDecision¶
Stability: beta
One hook's answer at one point.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.HookEvaluationError¶
Stability: beta
Raised when a hook could not be evaluated, which is a denial rather than a pass.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.HookPoint¶
Stability: beta
The seven places a run stops to ask.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.HookRefusedError¶
Stability: beta
Raised when a hook refused the step. The reason is the hook's own.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.HookRegistrationError¶
Stability: beta
Raised when a hook cannot be added to a chain.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.HookSubject¶
Stability: beta
What a hook is told about the step it is being asked about.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.INLINE_REFS¶
Stability: beta
No $defs and no $ref — every definition substituted where it is used.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.IdFactory¶
Stability: beta · Kind: Protocol
Source of identifiers, injected so that a run can be compared with another.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Idempotency¶
Stability: beta
What happens when the same call runs twice.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.IdempotencyPolicy¶
Stability: beta
A tool's declaration about repeating it, and what identifies one call.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.IdempotencyStore¶
Stability: beta · Kind: Protocol
Where the record of an executed side effect lives.
class IdempotencyStore(Protocol) {abandon(self, key: 'str', *, tenant: 'str') -> 'None'; begin(self, key: 'str', *, tenant: 'str', ttl_seconds: 'float') -> 'Claim'; forget(self, *, tenant: 'str') -> 'int'; record(self, key: 'str', *, tenant: 'str', outcome: 'str', ttl_seconds: 'float') -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.InFlightPolicy¶
Stability: beta
What happens to a run that is already under way when its grant is withdrawn.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.InMemoryCeilingLedger¶
Stability: beta
One process's ledger, correct under concurrency within that process.
class InMemoryCeilingLedger(object) {commit(self, idempotency_key: 'str') -> 'Hold | None'; committed(self, *, tenant: 'str', action_class: 'str', window_seconds: 'float') -> 'Decimal'; credit(self, *, tenant: 'str', action_class: 'str', currency: 'str', amount: 'Decimal', authorised_by: 'str', reason: 'str' = '') -> 'Credit'; credits(self) -> 'Sequence[Credit]'; reap(self) -> 'int'; release(self, idempotency_key: 'str') -> 'None'; reserve(self, *, tenant: 'str', action_class: 'str', ceiling: 'Ceiling', amount: 'Decimal', idempotency_key: 'str') -> 'Hold'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.InMemoryGrants¶
Stability: beta
Grants in a dict, for tests and single-process deployments.
class InMemoryGrants(object) {all_grants(self) -> 'Sequence[AutonomyGrant]'; grants_for(self, *, tenant: 'str', action_class: 'str') -> 'Sequence[AutonomyGrant]'; issue(self, grant: 'AutonomyGrant') -> 'AutonomyGrant'; revoke(self, revocation: 'Revocation') -> 'Revocation'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.IncomparableEvalError¶
Stability: beta
Raised when two eval runs cannot be compared to each other.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.IncompatiblePromptVersionError¶
Stability: beta
Raised when an alias may not be moved to a version the call sites cannot render.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.IndeterminateOutcomeError¶
Stability: beta
Raised when nobody can say whether a side effect happened.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.IndeterminateToolCallError¶
Stability: beta
Raised when a resume cannot say whether an effectful call already happened.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.InexactAmountError¶
Stability: beta
Raised when an amount cannot be counted against a ceiling without drifting.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.InjectionSignal¶
Stability: beta
One thing screening recognised, and where.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.InjectionSuspectedError¶
Stability: beta
Raised when content the run did not write is shaped like an instruction to it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.InlineRefs¶
Stability: beta
No $defs and no $ref — every definition substituted where it is used.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.InputT¶
Stability: beta
Type variable.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Instrumentation¶
Stability: beta
Emits a run-rooted trace with no per-agent wiring.
class Instrumentation(object) {run(self, run_id: 'str', **attributes: 'str') -> 'Iterator[RunSpan]'; step(self, kind: 'SpanKind', name: 'str', *, attempt: 'int' = 1, **attributes: 'str') -> 'Iterator[Span]'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.InvalidRequestError¶
Stability: beta
Raised when a provider rejected the request itself.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Invariant¶
Stability: beta
A rule about the answer as a whole, for the ones that are not about one field.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.IrreversibleActionError¶
Stability: beta
Raised when an action nothing can take back is about to run inside an unwindable scope.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.JSON_SCHEMA¶
Stability: beta
Draft 2020-12 as pydantic emits it, normalised. The default.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.JsonSchema¶
Stability: beta
Draft 2020-12 as pydantic emits it, normalised. The default.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.KeyValueStore¶
Stability: beta · Kind: Protocol
Durable key-to-value storage, for whatever a caller wants keyed.
class KeyValueStore(Protocol) {delete(self, key: 'str') -> 'None'; get(self, key: 'str') -> 'Any'; put(self, key: 'str', value: 'Any') -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.KnownTaskClass¶
Stability: beta
Exported value.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.LeaseLostError¶
Stability: beta
Raised when a worker acted on a claim it no longer holds.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.LeasePolicy¶
Stability: beta
How long a lease lives and when its holder should renew it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.LeaseStore¶
Stability: beta · Kind: Protocol
Where the one-holder-at-a-time decision is made.
class LeaseStore(Protocol) {acquire(self, run_id: 'str', *, tenant: 'str', holder: 'str', ttl_seconds: 'float') -> 'RunLease'; held(self, run_id: 'str', *, tenant: 'str') -> 'RunLease | None'; release(self, lease: 'RunLease') -> 'None'; renew(self, lease: 'RunLease', *, ttl_seconds: 'float') -> 'RunLease'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.LedgerFailure¶
Stability: beta
What a run does when the shared ledger holding a tenant ceiling is unreachable.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.LedgerKey¶
Stability: beta
Whose window this is.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.LintFinding¶
Stability: beta
One thing a prompt says that a tool should decide instead.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.LintReport¶
Stability: beta
What one run of the check found, over one prompt or a whole directory.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.LintRule¶
Stability: beta
One thing a prompt may not say, and what to do instead.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.LoopConfig¶
Stability: beta
How often a run may make the same call before it is treated as going nowhere.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.LoopLimitError¶
Stability: beta
Raised when a run hit one of the caps on its shape: how deep, how wide, how often.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.MASK¶
Stability: beta
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.MAX_HEADER_BYTES¶
Stability: beta
int([x]) -> integer int(x, base=10) -> integer
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.MaxIterationsError¶
Stability: beta
Raised when a run hit its iteration cap — the loop was bounded, and it hit the bound.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.McpAuthError¶
Stability: beta
Raised when an MCP server refused the credential a call presented.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.McpAuthReason¶
Stability: beta
Why an MCP server refused a call, kept apart because the three need different fixes.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.MediaIntakeError¶
Stability: beta
Raised when a document or recording could not be read into text.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.MemoryAdmissionError¶
Stability: beta
Raised when a fact was not allowed to become a durable memory.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.MemoryConflictError¶
Stability: beta
Raised when a supersession expected a version of a fact that is no longer live.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.MemoryContradictionError¶
Stability: beta
Raised when a scope holds contradictory beliefs that nothing may resolve for it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.MemoryCorruptionError¶
Stability: beta
Raised when a stored record no longer validates as the model it was written as.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.MemoryErased¶
Stability: beta
A subject's records were erased, which downstream stores have to hear about.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.MemoryLimitError¶
Stability: beta
Raised when a value is larger than the adapter declared it can hold.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.MemoryScopeError¶
Stability: beta
Raised when a record is filed somewhere it does not say it belongs.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.MemoryUnavailableError¶
Stability: beta
Raised when a memory store could not be reached, after the retries were spent.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Message¶
Stability: beta
One turn in a conversation.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.MissingExtraError¶
Stability: beta
Raised when an optional integration is used without installing its extra.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.MissingTenantContextError¶
Stability: beta
Raised when scoped work is attempted with no tenant context bound.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ModelArtifactError¶
Stability: beta
Raised when a model file on disk is not one that can be loaded.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ModelCapabilities¶
Stability: beta
What a provider says its model supports.
class ModelCapabilities(AdkModel) {declaring(self, **overrides: 'object') -> 'Self'; require(self, requirement: 'Capability', *, provider: 'str', model: 'str') -> 'None'; supports(self, requirement: 'Capability') -> 'bool'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ModelProvider¶
Stability: beta · Kind: Protocol
A source of model completions.
class ModelProvider(Protocol) {complete(self, request: 'ModelRequest') -> 'ModelResponse'; count_tokens(self, messages: 'Sequence[Message]') -> 'int'; stream(self, request: 'ModelRequest') -> 'AsyncIterator[StreamEvent]'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ModelRef¶
Stability: beta
A model, addressable by name from configuration.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ModelRequest¶
Stability: beta
One call to a provider, as data.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ModelRequirements¶
Stability: beta
What the caller needs of whatever model answers.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ModelResponse¶
Stability: beta
What a provider returned for one call.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ModelResponseError¶
Stability: beta
Raised when a provider answered with something the kit cannot read as a response.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ModelRouter¶
Stability: beta · Kind: Protocol
Resolves a task class and a requirement set to one concrete model.
class ModelRouter(Protocol) {resolve(self, task_class: 'TaskClass', *, requirements: 'ModelRequirements | None' = None, tenant: 'str | None' = None, agent: 'str | None' = None, pinned: 'ModelRef | None' = None) -> 'RoutingDecision'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ModelSpec¶
Stability: beta
A named model together with what it can do and where it may be used.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.NEVER_RETRYABLE¶
Stability: beta
Built-in immutable sequence.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.NoEligibleModelError¶
Stability: beta
Raised when nothing the routing table offers can do the work asked of it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.NoOutput¶
Stability: beta
The answer type of an agent that answers in prose: there is not one.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.NodeOutcome¶
Stability: beta
How a node ended. A string enum so a log line and a span attribute agree.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.NodeResult¶
Stability: beta
What one node did.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.NonDeterminismError¶
Stability: beta
Raised when replaying a recorded history against the current code diverges.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.NullEventPublisher¶
Stability: beta
The default. Publishes nowhere, so eventing is optional rather than mandatory.
class NullEventPublisher(object) {publish(self, event: 'EventEnvelope') -> 'None'; publish_batch(self, events: 'tuple[EventEnvelope, ...]') -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.OneOf¶
Stability: beta
A field that has to be one of a known set.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Origin¶
Stability: beta
What produced a piece of content. The one input to its trust level.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.OutputValidationError¶
Stability: beta
Raised when the answer does not satisfy its declared type or this tenant's rules.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Owner¶
Stability: beta
Who answers for an agent when it misbehaves.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.PAYLOAD_KEY¶
Stability: beta
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.PIIDetector¶
Stability: beta · Kind: Protocol
Anything that can find identifiers in a passage.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.PIIKind¶
Stability: beta
What kind of identifier was found. The placeholder keeps it, so reasoning survives.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.PIIMatch¶
Stability: beta
One identifier, located but not carried.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.PROMPT_SUFFIXES¶
Stability: beta
Built-in immutable sequence.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.PartialErasureError¶
Stability: beta
Raised when an erasure removed the records but could not reach a derived index.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.PatternDetector¶
Stability: beta
A detector built from one shape, optionally checked before it is believed.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.PayloadTooLargeError¶
Stability: beta
Raised when an activity input or result is larger than the transport will carry.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.PendingCall¶
Stability: beta
A call the model asked for that the checkpoint could not say had finished.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.PendingDecision¶
Stability: beta
One line of somebody's 'waiting on you', carrying no argument values.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.PlanValidationError¶
Stability: beta
Raised when a plan is not something the runtime could execute as written.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Policy¶
Stability: beta · Kind: Protocol
A deterministic rule about a parsed answer.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.PolicyReport¶
Stability: beta
Kept for the caller that asked what was violated, without what was answered.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.PolicyViolation¶
Stability: beta
One rule an answer broke.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.PoolExhaustedError¶
Stability: beta
Raised when every connection to a provider was in use and none came free in time.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.PrefixDriftError¶
Stability: beta
Raised when the frozen part of a prompt is not what was frozen.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Principal¶
Stability: beta
Who a run acts for, and what they were granted.
class Principal(AdkModel) {delegating(self, *, until: 'float', scopes: 'Iterable[str] | None' = None) -> 'Self'; expired(self, now: 'float') -> 'bool'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.PromptDefinition¶
Stability: beta
One published version of one prompt.
class PromptDefinition(AdkModel) {fits(self, window_tokens: 'int', *, share: 'float' = 0.5) -> 'bool'; instruct(self, agent: 'Agent[OutputT]') -> 'Agent[OutputT]'; instruct_typed(self, agent: 'TypedAgent[InputT, OutputT]') -> 'TypedAgent[InputT, OutputT]'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.PromptNotFoundError¶
Stability: beta
Raised when a prompt name, version or alias does not exist in the registry.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.PromptRef¶
Stability: beta
What a run and its spans record about the prompt that produced them.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.PromptRegistry¶
Stability: beta · Kind: Protocol
Where prompt text is read from. The protocol is the stable surface.
class PromptRegistry(Protocol) {get(self, name: 'str', *, version: 'str' = '', alias: 'str' = '', tenant: 'str' = '') -> 'PromptDefinition'; list_versions(self, name: 'str', *, tenant: 'str' = '') -> 'tuple[str, ...]'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.PromptRejectedError¶
Stability: beta
Raised when a stored prompt exists but may not be served.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.PromptTemplate¶
Stability: beta
A prompt body whose every slot is declared, typed and checked before it renders.
class PromptTemplate(AdkModel) {render(self, values: 'Mapping[str, object]', *, window_tokens: 'int' = 0) -> 'Rendered'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ProtocolConformanceError¶
Stability: beta
Raised when an object does not provide every member of a protocol.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Provenance¶
Stability: beta
Where one resolved key came from, and what it beat.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ProvenanceLostError¶
Stability: beta
Raised when compacting a conversation would drop a source it was carrying.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ProvidedSecrets¶
Stability: beta
A SecretProvider — the kit's synchronous lookup — read as a SecretResolver.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ProviderConfig¶
Stability: beta
Where the model provider lives and how long to wait for it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ProviderError¶
Stability: beta
Raised when a model provider fails, in the kit's own vocabulary.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ProviderName¶
Stability: beta
Exported value.
ProviderName = typing.Literal['anthropic', 'gemini', 'grok', 'groq', 'llama.cpp', 'ollama', 'openai', 'openai-compatible', 'openrouter', 'tgi', 'vllm', 'xai']
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ProviderTimeoutError¶
Stability: beta
Raised when a provider did not answer inside the deadline.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ProviderUnavailableError¶
Stability: beta
Raised when a provider could not be reached, or was reached and was not ready.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.PublishReport¶
Stability: beta
What became of a batch.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.QueuePolicy¶
Stability: beta
How long a claim lasts, how often it may be retried, and how long it waits.
class QueuePolicy(AdkModel) {backoff_for(self, attempts: 'int') -> 'float'; claimed(self, item: 'WorkItem', *, worker: 'str', now: 'float', lease_seconds: 'float | None' = None) -> 'WorkItem'; completed(self, item: 'WorkItem') -> 'WorkItem'; exhausted(self, attempts: 'int') -> 'bool'; overheld(self, item: 'WorkItem', now: 'float') -> 'bool'; renewed(self, item: 'WorkItem', *, now: 'float') -> 'WorkItem'; returned(self, item: 'WorkItem', *, error: 'str', now: 'float', retryable: 'bool' = True, backoff: 'bool' = True) -> 'WorkItem'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.QueueStats¶
Stability: beta
What the queue looks like right now, for the metrics a deployment alerts on.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.QueueUnavailableError¶
Stability: beta
Raised when a work queue could not be reached.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.REASONING¶
Stability: beta
The kind of work, named rather than the model that does it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RESERVED_ACTION_CLASS¶
Stability: beta
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RULES¶
Stability: beta
Built-in immutable sequence.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RateLimitError¶
Stability: beta
Raised when a provider refused the call because too many were made.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ReasoningDelta¶
Stability: beta
More of the model's own working out.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Recording¶
Stability: beta
One finished span.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RecursionLimitError¶
Stability: beta
Raised when a run was called from too deep a chain of agents calling agents.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Redacted¶
Stability: beta
What a passage became, and what was taken out of it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RedactionConfig¶
Stability: beta
Redaction applied before anything is logged or exported.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RejectedCandidate¶
Stability: beta
A model the router passed over, and what it could not do.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Rendered¶
Stability: beta
One rendered prompt, and what may be said about it without quoting it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RepairConfig¶
Stability: beta
How many times an answer that did not validate may be sent back with the reason.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RepeatedCallError¶
Stability: beta
Raised when the same tool was asked for with the same arguments past the threshold.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RequiresCitation¶
Stability: beta
An assertion drawn from retrieved content has to say where it came from.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Reservation¶
Stability: beta
An allowance held while a run spends it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ResolvedBudget¶
Stability: beta
The effective ceiling, and which scope each dimension of it came from.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ResumeConflictError¶
Stability: beta
Raised when another worker is already carrying this run on.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ResumePlan¶
Stability: beta
What carrying a run on would involve, decided before anything is carried on.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Resumption¶
Stability: beta
What a resume concluded about one outstanding call.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RetrievalDegradedError¶
Stability: beta
Raised when retrieval could not run every branch the caller required.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RetryConfig¶
Stability: beta
When a failed attempt is worth making again, and how long to wait first.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Reversal¶
Stability: beta
One attempt at taking one applied action back.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ReversalOutcome¶
Stability: beta
What happened when one applied action was taken back.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Revocation¶
Stability: beta
Authority being taken back, by one grant, one class, or one tenant outright.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Role¶
Stability: beta
Exported value.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RoutingDecision¶
Stability: beta
Which model answered a task class, and why that one.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Run¶
Stability: beta
One execution of an agent, from prompt assembly to a terminal state.
class Run(AdkModel, Generic) {record(self, usage: 'Usage') -> 'Self'; record_event(self, event: 'RunEvent') -> 'Self'; transition_to(self, state: 'RunState', *, at: 'float | None' = None) -> 'Self'; with_output(self, output: 'OutputT') -> 'Self'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RunBudget¶
Stability: beta
The ceiling for one run, enforced before the spend rather than reported after it.
class RunBudget(object) {check(self) -> 'BudgetDecision'; child(self) -> 'RunBudget'; limits(self) -> 'BudgetLimits'; record(self, usage: 'Usage', *, model_calls: 'int' = 0, tool_calls: 'int' = 0, iterations: 'int' = 0, peer_invocations: 'int' = 0) -> 'None'; reserve(self, estimate: 'int') -> 'None'; sliced(self, limits: 'BudgetLimits') -> 'RunBudget'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RunCancelled¶
Stability: beta
A run stopped because something asked it to.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RunCompleted¶
Stability: beta
A run finished on its own terms.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RunContext¶
Stability: beta
What the runtime threads through every layer of a run.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RunEvent¶
Stability: beta
One thing that happened during a run, in the order it happened.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RunEventKind¶
Stability: beta
What happened. One kind per thing the loop does, so a filter is exact.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RunFailed¶
Stability: beta
A run ended in a failure.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RunGrant¶
Stability: beta
What a run was allowed to do, so a run below it can be allowed no more.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RunLease¶
Stability: beta
One worker's claim on one run, for a bounded time.
class RunLease(AdkModel) {held_at(self, now: 'float') -> 'bool'; superseded_by(self, other: 'RunLease') -> 'bool'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RunLeaseError¶
Stability: beta
Raised when a worker tries to advance a run it does not hold the lease on.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RunRecord¶
Stability: beta
A run as a store holds it: far enough along to be resumed, and no further.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RunSpan¶
Stability: beta
The root span, plus the trace it collected once the run is over.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RunStarted¶
Stability: beta
A run began.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RunState¶
Stability: beta
Where a run is, and if it is over, why.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.RunningLoopError¶
Stability: beta
Raised when a synchronous helper is called from inside a running event loop.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.SENSITIVE_SHAPES¶
Stability: beta
Built-in immutable sequence.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.SEPARATOR¶
Stability: beta
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.SMART¶
Stability: beta
The kind of work, named rather than the model that does it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.SPAN_NAMES¶
Stability: beta
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.STATE_REGISTRY¶
Stability: beta
Which version each kind is written at, and how to read the versions before it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.STRICT_SUBSET¶
Stability: beta
Every object closed, for providers whose structured-output mode demands it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.SUPPORTED_WINDOW¶
Stability: beta
int([x]) -> integer int(x, base=10) -> integer
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Sampling¶
Stability: beta
Which runs are exported.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.SandboxError¶
Stability: beta
Raised when the sandbox stopped generated code, rather than the code stopping itself.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.SandboxMemoryError¶
Stability: beta
Raised when generated code asked for more memory than its ceiling allowed.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.SandboxTimeoutError¶
Stability: beta
Raised when generated code ran past a time ceiling and was killed.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.SchemaDialect¶
Stability: beta · Kind: Protocol
What one provider will accept, as a transformation and a list of refusals.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.SchemaGenerationError¶
Stability: beta
Raised when a type cannot be faithfully described as a schema.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.SchemaViolationError¶
Stability: beta
Raised when a payload does not match the type declared for that boundary.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ScopeEscalationError¶
Stability: beta
Raised when a sub-agent asked to hold access the agent it acts for does not hold.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ScopeSet¶
Stability: beta
A set of scopes that can be narrowed and never widened.
class ScopeSet(object) {missing(self, required: 'Iterable[str]') -> 'tuple[str, ...]'; narrowed_to(self, other: 'ScopeSet') -> 'ScopeSet'; permits(self, scope: 'str') -> 'bool'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ScopeViolationError¶
Stability: beta
Raised when an operator action would reach across a tenant boundary.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ScopedLimits¶
Stability: beta
One set of limits and where it was attached.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.SecretProvider¶
Stability: beta · Kind: Protocol
Where a credential is looked up, asked once per use rather than once per process.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.SecretRef¶
Stability: beta
The name of a secret, never the secret.
class SecretRef(AdkModel) {describe(self) -> 'str'; for_tenant(self, tenant: 'str') -> 'Self'; resolve(self, secrets: 'SecretProvider') -> 'str'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.SecretResolutionError¶
Stability: beta
Raised when a credential could not be fetched for the reference that names it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.SecretResolver¶
Stability: beta · Kind: Protocol
Where a SecretRef is turned into a value, asked at the point of use.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Sensitive¶
Stability: beta
Marks a field that must not reach telemetry.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.SessionRecord¶
Stability: beta
A conversation across runs, as a store holds it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Severity¶
Stability: beta
Exported value.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.SignalKind¶
Stability: beta
What a screener recognised. Named, because "suspicious" is not actionable.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Span¶
Stability: beta
A span while it is open. Setting anything on it is a dictionary write, never I/O.
class Span(object) {first_token(self) -> 'None'; iterated(self, count: 'int' = 1) -> 'None'; set(self, **attributes: 'str') -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.SpanKind¶
Stability: beta
What a span covers. One kind per stage a run can spend time in.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.SpanLimits¶
Stability: beta
Bounds on what one run may record.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.SpanStatus¶
Stability: beta
How a span ended.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.SpendLedger¶
Stability: beta · Kind: Protocol
Where a shared ceiling is actually enforced.
class SpendLedger(Protocol) {forget(self, tenant: 'str') -> 'WindowSpend'; read_window(self, key: 'LedgerKey') -> 'WindowSpend'; reconcile(self) -> 'int'; record_progress(self, reservation: 'Reservation', spent: 'Decimal') -> 'None'; release(self, reservation: 'Reservation') -> 'None'; reserve(self, key: 'LedgerKey', amount: 'Decimal', *, ceiling: 'Decimal', lease_seconds: 'float' = Ellipsis) -> 'Reservation'; settle(self, reservation: 'Reservation', actual: 'Decimal') -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.StateConflictError¶
Stability: beta
Raised when a state write named a version that has since moved.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.StateDelta¶
Stability: beta
Amounts to add to a run, never values to set.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.StateInUseError¶
Stability: beta
Raised when deleting a session would orphan runs that have not finished.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.StateKey¶
Stability: beta
Whose record, and which one.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.StateKind¶
Stability: beta
A thing the kit persists. Migrations are registered per kind, not per store.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.StateMigration¶
Stability: beta
One version step, applied on read.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.StateMigrationError¶
Stability: beta
Raised when persisted state could not be brought forward into a record.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.StateNotFoundError¶
Stability: beta
Raised when a patch or a resume named state that is not there.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.StatePage¶
Stability: beta
One page of runs, and where the next one starts.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.StatePersistenceError¶
Stability: beta
Raised when a state store could not take a write, or could not be reached.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.StateQuery¶
Stability: beta
Which runs to list, for operator tooling and for whatever reaps abandoned work.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.StateRegistry¶
Stability: beta
Which version each kind is written at, and how to read the versions before it.
class StateRegistry(object) {oldest(self, kind: 'str') -> 'int'; register(self, migration: 'StateMigration') -> 'None'; upgraded(self, envelope: 'Envelope') -> 'Envelope'; version(self, kind: 'str') -> 'int'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.StateStore¶
Stability: beta · Kind: Protocol
Where session and run state lives, for agents running in more than one process.
class StateStore(Protocol) {delete_run(self, key: 'StateKey') -> 'None'; delete_session(self, key: 'StateKey', *, cascade: 'bool' = False) -> 'None'; get_run(self, key: 'StateKey') -> 'RunRecord | None'; get_session(self, key: 'StateKey') -> 'SessionRecord | None'; list_runs(self, query: 'StateQuery') -> 'StatePage'; patch_run(self, key: 'StateKey', delta: 'StateDelta') -> 'RunRecord'; put_run(self, record: 'RunRecord') -> 'RunRecord'; put_session(self, record: 'SessionRecord') -> 'SessionRecord'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.StopReason¶
Stability: beta
Why a model stopped generating, in the kit's words rather than a vendor's.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.StoreConfig¶
Stability: beta
Endpoints for the optional stores. Absent means the integration is not in use.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.StreamAccumulator¶
Stability: beta
Assembles a ModelResponse from the events of one stream.
class StreamAccumulator(object) {feed(self, event: 'StreamEvent') -> 'None'; finish(self, stop_reason: 'StopReason') -> 'ModelResponse'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.StreamEnd¶
Stability: beta
The last event, carrying the assembled answer.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.StreamEvent¶
Stability: beta
Base for every event a provider may emit while an answer is being generated.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.StreamInterruptedError¶
Stability: beta
Raised when a stream stopped before the model had finished answering.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.StrictSubset¶
Stability: beta
Every object closed, for providers whose structured-output mode demands it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.SuspendedRun¶
Stability: beta
A run stopped on a question, and everything needed to carry it on.
class SuspendedRun(AdkModel) {expired_by(self, now: 'float') -> 'bool'; held_for(self, now: 'float') -> 'float'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.SuspensionStore¶
Stability: beta · Kind: Protocol
Where stopped runs wait, keyed by run and reachable by token digest.
class SuspensionStore(Protocol) {attempted(self, attempt: 'TokenAttempt') -> 'None'; by_token(self, token_digest: 'str', *, tenant: 'str') -> 'SuspendedRun | None'; forget(self, run_id: 'str', *, tenant: 'str') -> 'None'; get(self, run_id: 'str', *, tenant: 'str') -> 'SuspendedRun | None'; pending(self, *, tenant: 'str') -> 'tuple[SuspendedRun, ...]'; put(self, suspended: 'SuspendedRun') -> 'None'; spend(self, run_id: 'str', *, tenant: 'str') -> 'bool'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TRUST_BY_ORIGIN¶
Stability: beta
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TaskClass¶
Stability: beta
The kind of work, named rather than the model that does it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TelemetryConfig¶
Stability: beta
OpenTelemetry export. Case content is never an attribute; see docs/contributing.md.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TelemetryLoss¶
Stability: beta
What was not exported, counted locally.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TemplateError¶
Stability: beta
Raised when a prompt template, or a value for one, may not be rendered.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TenantConfig¶
Stability: beta
One tenant's entitlement, as it is stored and as it arrives.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TenantConfigProvider¶
Stability: beta · Kind: Protocol
Where tenant configuration is read from.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TenantContext¶
Stability: beta
The isolation boundary the work in hand belongs to.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TenantContextError¶
Stability: beta
Raised when a tenant context arriving from elsewhere cannot be trusted or read.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TenantCrossingError¶
Stability: beta
Raised when a scope names a different tenant than the one it was entered from.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TenantIsolationError¶
Stability: beta
Raised when stored data does not belong to the tenant the work is bound to.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TenantLedger¶
Stability: beta · Kind: Protocol
Where a ceiling wider than one run is kept.
class TenantLedger(Protocol) {consume(self, tenant: 'str', window: 'str', spent: 'Consumed') -> 'Consumed'; total(self, tenant: 'str', window: 'str') -> 'Consumed'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TenantLimitError¶
Stability: beta
Raised when a tenant's configuration does not permit what was asked for.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TenantLimits¶
Stability: beta
What one tenant may spend, reach and keep.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TenantPolicy¶
Stability: beta
The resolved entitlement, bound for the work it applies to.
class TenantPolicy(AdkModel) {budget_scope(self) -> 'ScopedLimits | None'; check_model(self, model: 'str') -> 'None'; check_region(self, region: 'str') -> 'None'; check_tool(self, name: 'str') -> 'None'; model_for(self, task_class: 'str') -> 'str | None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TenantRefusal¶
Stability: beta
Type alias.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TenantUnconfiguredError¶
Stability: beta
Raised when a tenant's configuration exists somewhere but could not be read.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TextDelta¶
Stability: beta
More of the answer. Concatenating every delta in arrival order gives the content.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TextPart¶
Stability: beta
Text in a message.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Thresholds¶
Stability: beta
The severity at which each category is refused, for one tenant.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TokenAttempt¶
Stability: beta
Somebody presenting a token, and what came of it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TokenRedeemer¶
Stability: beta · Kind: Protocol
A gate that can turn a token back into the run it stopped.
class TokenRedeemer(Protocol) {redeem(self, token: 'str', *, tenant: 'str', presented_by: 'str') -> 'SuspendedRun'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ToolAllowlist¶
Stability: beta
The tools a run may call, resolved once and immutable for its lifetime.
class ToolAllowlist(object) {check(self, name: 'str') -> 'None'; decide(self, name: 'str') -> 'ToolDecision'; narrowed(self, declared: 'Iterable[str]', *, agent: 'str' = '') -> 'Self'; permits(self, name: 'str') -> 'bool'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ToolArgumentValidationError¶
Stability: beta
Raised when a model's tool-call arguments do not match the tool's own schema.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ToolCall¶
Stability: beta
A model's request to run a tool.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ToolCallCompleted¶
Stability: beta
A tool call came back, one way or another.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ToolCallDelta¶
Stability: beta
Part of one tool call. Vendors send the arguments as JSON text, a fragment at a time.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ToolCallRequested¶
Stability: beta
A tool call was about to go out.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ToolDecision¶
Stability: beta
One dispatch decision, as it is recorded.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ToolDeclaration¶
Stability: beta
A tool as the model is told about it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ToolDefinitionError¶
Stability: beta
Raised when a callable cannot be made into a tool.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ToolDisposition¶
Stability: beta
What a resume concluded about one outstanding call.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ToolError¶
Stability: beta
Base of the tool taxonomy: something the run loop can branch on.
Typed errors: ValueError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ToolExecutionError¶
Stability: beta
Raised when a tool fails. The tool's own exception is the __cause__.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ToolFailure¶
Stability: beta
The tool tried and could not finish.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ToolFailurePolicy¶
Stability: beta
What a run does when a tool it called fails.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ToolNotFoundError¶
Stability: beta
Raised when nothing is registered under the name that was asked for.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ToolNotPermittedError¶
Stability: beta
Raised when a tool exists but this agent's allowlist does not name it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ToolRefusal¶
Stability: beta
The tool worked and declined. An answer, not a fault.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ToolRegistry¶
Stability: beta · Kind: Protocol
The set of tools an agent may call, and their declared schemas.
class ToolRegistry(Protocol) {declarations(self) -> 'Any'; invoke(self, name: 'str', arguments: 'Any') -> 'Any'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ToolResultError¶
Stability: beta
Raised when what a tool returned may not cross into the run as it stands.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ToolTimedOutError¶
Stability: beta
Raised when one tool call outran the ceiling declared for that tool.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Trace¶
Stability: beta
Everything one run recorded.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Tracer¶
Stability: beta · Kind: Protocol
Sideband emission of spans and events.
class Tracer(Protocol) {event(self, name: 'str', **attributes: 'Any') -> 'None'; span(self, name: 'str', **attributes: 'Any') -> 'Any'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TrustBoundary¶
Stability: beta
Where a model sits, on the axes a fallback may not cross.
class TrustBoundary(AdkModel) {admits(self, other: 'TrustBoundary') -> 'bool'; differs_from(self, other: 'TrustBoundary') -> 'tuple[str, ...]'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TrustBoundaryError¶
Stability: beta
Raised when the only model left to try sits outside the run's trust boundary.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TrustLevel¶
Stability: beta
How far content may act, decided by where it came from.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TypedAgent¶
Stability: beta
An agent with an application input type in addition to its output type.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.TypedAgentDefinition¶
Stability: beta
A reviewed definition for a TypedAgent input and output contract.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.UncitedClaimError¶
Stability: beta
Raised when a claim carries no citation at all.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.UngroundedCitationError¶
Stability: beta
Raised when an answer cites something the run did not retrieve.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.UnknownEventTypeError¶
Stability: beta
Raised when an event names a type this kit has no schema for.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.UnknownTenantError¶
Stability: beta
Raised when work arrives for a tenant nothing is configured for.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.UnlimitedBudget¶
Stability: beta
No ceiling at all, which is a thing somebody has to write down.
class UnlimitedBudget(object) {check(self) -> 'BudgetDecision'; child(self) -> 'UnlimitedBudget'; limits(self) -> 'BudgetLimits'; record(self, usage: 'Usage', *, model_calls: 'int' = 0, tool_calls: 'int' = 0, iterations: 'int' = 0, peer_invocations: 'int' = 0) -> 'None'; reserve(self, estimate: 'int') -> 'None'; sliced(self, limits: 'BudgetLimits') -> 'UnlimitedBudget'}
Typed errors: ValueError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.UnsupportedEventVersionError¶
Stability: beta
Raised when an event's schema version is outside the window this kit can read.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.UnsupportedStateVersionError¶
Stability: beta
Raised when persisted state was written at a version this build cannot read.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Upcaster¶
Stability: beta
Type alias.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Usage¶
Stability: beta
What one step consumed, and what it cost if the cost is knowable.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.UsageDelta¶
Stability: beta
The running total, as the provider reports it. Later events replace earlier ones.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.VERSION¶
Stability: beta
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Variable¶
Stability: beta
One slot a template declares, and what may go in it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.Window¶
Stability: beta
The period a ceiling applies over.
class Window(AdkModel) {bucket(self, now: 'float') -> 'int'; opened_at(self, now: 'float') -> 'float'; resets_at(self, now: 'float') -> 'float'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.WindowKind¶
Stability: beta
How a window's boundary is decided.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.WindowSpend¶
Stability: beta
What a window holds right now.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.WorkItem¶
Stability: beta
One unit of work, as the queue holds it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.WorkItemNotFoundError¶
Stability: beta
Raised when a queue operation named an item the queue does not hold.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.WorkPriority¶
Stability: beta
How soon an item is claimed relative to its tenant's other work.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.WorkQueue¶
Stability: beta · Kind: Protocol
Where work waits for a worker, and what becomes of it when one dies holding it.
class WorkQueue(Protocol) {adopt(self, *, worker: 'str') -> 'tuple[WorkItem, ...]'; claim(self, *, worker: 'str', queue: 'str' = 'default', lease_seconds: 'float | None' = None) -> 'WorkItem | None'; complete(self, item_id: 'str', *, tenant: 'str', worker: 'str') -> 'WorkItem'; dead_letters(self, *, tenant: 'str', limit: 'int' = 50) -> 'tuple[WorkItem, ...]'; enqueue(self, item: 'WorkItem') -> 'WorkItem'; fail(self, item_id: 'str', *, tenant: 'str', worker: 'str', error: 'str', retryable: 'bool' = True) -> 'WorkItem'; heartbeat(self, item_id: 'str', *, tenant: 'str', worker: 'str') -> 'WorkItem'; reap(self) -> 'tuple[WorkItem, ...]'; stats(self, *, queue: 'str' = 'default') -> 'QueueStats'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.WorkState¶
Stability: beta
Where an item is.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.WorkersBusyError¶
Stability: beta
Raised when a synchronous body could not be given a worker in time.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.WriteQueueFullError¶
Stability: beta
Raised when an asynchronous write cannot be accepted because the queue is full.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.activities.ActivityClass¶
Stability: beta
What kind of work an activity does, which is what its numbers follow from.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.activities.ActivityPolicy¶
Stability: beta
The numbers one activity runs under.
class ActivityPolicy(AdkModel) {attempts_for(self, idempotency: 'IdempotencyPolicy | None', *, keyed: 'bool' = False) -> 'int'; backoff(self, seconds: 'float', *, elapsed: 'float') -> 'Backoff'; retryable(self, failure: 'BaseException') -> 'bool'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.activities.Backoff¶
Stability: beta
How long to wait, and whether the wait was cut to fit inside the activity.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.activities.DEFAULT_ACTIVITY_POLICIES¶
Stability: beta
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.activities.Heartbeat¶
Stability: beta
Progress from a running activity. Never a result, and never part of one.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.activities.NEVER_RETRYABLE¶
Stability: beta
Built-in immutable sequence.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.agent.Agent¶
Stability: beta
A declarative description of an agent.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.agent.ToolFailurePolicy¶
Stability: beta
What a run does when a tool it called fails.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.agent.TypedAgent¶
Stability: beta
An agent with an application input type in addition to its output type.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.arguments_digest¶
Stability: beta
A stable fingerprint of what a call was given, safe to keep next to its key.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.arriving¶
Stability: beta
Bind the incoming message's tenant for the length of handling it.
def arriving(headers: 'Mapping[str, str]', *, authenticated: 'str | None' = None) -> 'Iterator[TenantContext]'
Typed errors: TenantContextError, TenantCrossingError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.audit.AuditDecision¶
Stability: beta
What was decided about one attempted action.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.audit.AuditEvent¶
Stability: beta
One decision about one attempted action, as it is stored.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.audit.AuditSink¶
Stability: beta · Kind: Protocol
Where decisions are appended, and read back by whoever is accountable for them.
class AuditSink(Protocol) {append(self, event: 'AuditEvent') -> 'AuditEvent'; pseudonymise(self, *, tenant: 'str', subject: 'str') -> 'int'; records(self, *, tenant: 'str', since: 'float' = 0.0, until: 'float | None' = None, decision: 'AuditDecision | None' = None) -> 'tuple[AuditEvent, ...]'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.audit.digest_of_arguments¶
Stability: beta
The digest an audit record carries in place of the payload.
def digest_of_arguments(arguments: 'Mapping[str, Any]', *, extra_patterns: 'Sequence[str]' = ()) -> 'str'
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.audit.pseudonym¶
Stability: beta
A stable stand-in for a person, for an audit record that outlives their consent.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.autonomy.ActionClass¶
Stability: beta
A named class of side effect, and where in a call's arguments its money is.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.autonomy.ActionRegistry¶
Stability: beta
Which action class each tool belongs to.
class ActionRegistry(object) {named(self, action_class: 'str') -> 'ActionClass | None'; of(self, tool: 'str') -> 'ActionClass | None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.autonomy.ActionRequest¶
Stability: beta
One action an agent wants to take, and what the runtime knows about it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.autonomy.AutonomyDecision¶
Stability: beta
What the ladder decided, and what has to be recorded about it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.autonomy.AutonomyGrant¶
Stability: beta
Permission to act unattended, issued by somebody, expiring by itself.
class AutonomyGrant(AdkModel) {covers(self, *, tenant: 'str', user: 'str | None', now: 'float') -> 'bool'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.autonomy.AutonomyLadder¶
Stability: beta
Resolves one attempted action against the grants that cover it.
class AutonomyLadder(object) {amount_in(self, tool: 'str', arguments: 'Mapping[str, Any]') -> 'Decimal | None'; classify(self, tool: 'str') -> 'str | None'; decide(self, request: 'ActionRequest') -> 'AutonomyDecision'; validate_grants(self) -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.autonomy.AutonomyLevel¶
Stability: beta
How far a grant lets an agent go before a human is involved.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.autonomy.AutonomyOutcome¶
Stability: beta
What the ladder decided about one attempted action.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.autonomy.Ceiling¶
Stability: beta
How much a grant covers, in what, over what window.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.autonomy.CommitmentLedger¶
Stability: beta · Kind: Protocol
What a tenant has already committed against an action class in a window.
class CommitmentLedger(Protocol) {committed(self, *, tenant: 'str', action_class: 'str', window_seconds: 'float') -> 'Decimal'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.autonomy.GrantIssuer¶
Stability: beta · Kind: Protocol
Issuing and withdrawing autonomy, which only a human or system identity does.
class GrantIssuer(Protocol) {issue(self, grant: 'AutonomyGrant') -> 'AutonomyGrant'; revoke(self, revocation: 'Revocation') -> 'Revocation'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.autonomy.GrantReader¶
Stability: beta · Kind: Protocol
What the runtime is allowed to know about grants: what is live, and nothing more.
class GrantReader(Protocol) {grants_for(self, *, tenant: 'str', action_class: 'str') -> 'Sequence[AutonomyGrant]'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.autonomy.InFlightPolicy¶
Stability: beta
What happens to a run that is already under way when its grant is withdrawn.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.autonomy.InMemoryGrants¶
Stability: beta
Grants in a dict, for tests and single-process deployments.
class InMemoryGrants(object) {all_grants(self) -> 'Sequence[AutonomyGrant]'; grants_for(self, *, tenant: 'str', action_class: 'str') -> 'Sequence[AutonomyGrant]'; issue(self, grant: 'AutonomyGrant') -> 'AutonomyGrant'; revoke(self, revocation: 'Revocation') -> 'Revocation'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.autonomy.RESERVED_ACTION_CLASS¶
Stability: beta
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.autonomy.Revocation¶
Stability: beta
Authority being taken back, by one grant, one class, or one tenant outright.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.bound¶
Stability: beta
Wrap call so it runs under the context bound now, wherever it runs later.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.budget.BudgetDecision¶
Stability: beta
Whether there is room left, and where there is not.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.budget.BudgetLimits¶
Stability: beta
A ceiling, in every dimension a run can run away in.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.budget.BudgetScope¶
Stability: beta
Where a set of limits was attached, which is how the effective one is attributed.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.budget.Consumed¶
Stability: beta
What has been spent against a ceiling so far.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.budget.LedgerFailure¶
Stability: beta
What a run does when the shared ledger holding a tenant ceiling is unreachable.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.budget.ResolvedBudget¶
Stability: beta
The effective ceiling, and which scope each dimension of it came from.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.budget.RunBudget¶
Stability: beta
The ceiling for one run, enforced before the spend rather than reported after it.
class RunBudget(object) {check(self) -> 'BudgetDecision'; child(self) -> 'RunBudget'; limits(self) -> 'BudgetLimits'; record(self, usage: 'Usage', *, model_calls: 'int' = 0, tool_calls: 'int' = 0, iterations: 'int' = 0, peer_invocations: 'int' = 0) -> 'None'; reserve(self, estimate: 'int') -> 'None'; sliced(self, limits: 'BudgetLimits') -> 'RunBudget'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.budget.ScopedLimits¶
Stability: beta
One set of limits and where it was attached.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.budget.TenantLedger¶
Stability: beta · Kind: Protocol
Where a ceiling wider than one run is kept.
class TenantLedger(Protocol) {consume(self, tenant: 'str', window: 'str', spent: 'Consumed') -> 'Consumed'; total(self, tenant: 'str', window: 'str') -> 'Consumed'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.budget.UnlimitedBudget¶
Stability: beta
No ceiling at all, which is a thing somebody has to write down.
class UnlimitedBudget(object) {check(self) -> 'BudgetDecision'; child(self) -> 'UnlimitedBudget'; limits(self) -> 'BudgetLimits'; record(self, usage: 'Usage', *, model_calls: 'int' = 0, tool_calls: 'int' = 0, iterations: 'int' = 0, peer_invocations: 'int' = 0) -> 'None'; reserve(self, estimate: 'int') -> 'None'; sliced(self, limits: 'BudgetLimits') -> 'UnlimitedBudget'}
Typed errors: ValueError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.budget.most_restrictive¶
Stability: beta
The tightest applicable ceiling in each dimension, with its source recorded.
Typed errors: ConfigurationError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.canonical¶
Stability: beta
The key a tool name is compared under.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.canonical_json¶
Stability: beta
Serialise state to the one form it hashes and compares by.
Typed errors: TypeError, ValueError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.capabilities.Capability¶
Stability: beta
A thing a model either does or does not do, named the same way everywhere.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.capabilities.CapabilitySet¶
Stability: beta
Runtime representation of an annotated type.
CapabilitySet = typing.Annotated[frozenset[tesserix_adk.core.capabilities.Capability], BeforeValidator(func=<class 'frozenset'>, json_schema_input_type=PydanticUndefined)]
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.capabilities.ModelCapabilities¶
Stability: beta
What a provider says its model supports.
class ModelCapabilities(AdkModel) {declaring(self, **overrides: 'object') -> 'Self'; require(self, requirement: 'Capability', *, provider: 'str', model: 'str') -> 'None'; supports(self, requirement: 'Capability') -> 'bool'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.capabilities.ModelRef¶
Stability: beta
A model, addressable by name from configuration.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.capabilities.ModelSpec¶
Stability: beta
A named model together with what it can do and where it may be used.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.carried¶
Stability: beta
The headers to merge into an outgoing request.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ceiling.CeilingLedger¶
Stability: beta · Kind: Protocol
Reserve before the action, settle after it. Also what a ladder reads headroom from.
class CeilingLedger(Protocol) {commit(self, idempotency_key: 'str') -> 'Hold | None'; committed(self, *, tenant: 'str', action_class: 'str', window_seconds: 'float') -> 'Decimal'; release(self, idempotency_key: 'str') -> 'None'; reserve(self, *, tenant: 'str', action_class: 'str', ceiling: 'Ceiling', amount: 'Decimal', idempotency_key: 'str') -> 'Hold'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ceiling.Credit¶
Stability: beta
Money coming back, recorded against the class it came back from.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ceiling.Hold¶
Stability: beta
Headroom taken for one action, before the action happens.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ceiling.HoldState¶
Stability: beta
Where a reservation got to. Held counts against the ceiling exactly as committed does.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ceiling.InMemoryCeilingLedger¶
Stability: beta
One process's ledger, correct under concurrency within that process.
class InMemoryCeilingLedger(object) {commit(self, idempotency_key: 'str') -> 'Hold | None'; committed(self, *, tenant: 'str', action_class: 'str', window_seconds: 'float') -> 'Decimal'; credit(self, *, tenant: 'str', action_class: 'str', currency: 'str', amount: 'Decimal', authorised_by: 'str', reason: 'str' = '') -> 'Credit'; credits(self) -> 'Sequence[Credit]'; reap(self) -> 'int'; release(self, idempotency_key: 'str') -> 'None'; reserve(self, *, tenant: 'str', action_class: 'str', ceiling: 'Ceiling', amount: 'Decimal', idempotency_key: 'str') -> 'Hold'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ceiling.exact¶
Stability: beta
amount as a Decimal, or a typed refusal.
Typed errors: InexactAmountError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.checkpoint.CHECKPOINT_FORMAT¶
Stability: beta
int([x]) -> integer int(x, base=10) -> integer
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.checkpoint.Checkpoint¶
Stability: beta
The frontier of a run, far enough along that another process can carry it on.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.checkpoint.CheckpointBoundary¶
Stability: beta
Where in a turn a checkpoint may be taken.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.checkpoint.CheckpointPolicy¶
Stability: beta
When a run is written down, and how much of it may be.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.checkpoint.CheckpointStore¶
Stability: beta · Kind: Protocol
Where the frontier of a run is kept between processes.
class CheckpointStore(Protocol) {forget(self, run_id: 'str', *, tenant: 'str') -> 'None'; latest(self, run_id: 'str', *, tenant: 'str') -> 'Checkpoint | None'; put(self, checkpoint: 'Checkpoint') -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.checkpoint.PendingCall¶
Stability: beta
A call the model asked for that the checkpoint could not say had finished.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.checkpoint.ResumePlan¶
Stability: beta
What carrying a run on would involve, decided before anything is carried on.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.checkpoint.Resumption¶
Stability: beta
What a resume concluded about one outstanding call.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.checkpoint.ToolDisposition¶
Stability: beta
What a resume concluded about one outstanding call.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.claim_check.ClaimCheckPolicy¶
Stability: beta
When a result is checked in, how much of it stays, and how long the rest is kept.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.claim_check.ClaimCheckStore¶
Stability: beta · Kind: Protocol
Where a checked-in result lives until the run that made it is over.
class ClaimCheckStore(Protocol) {fetch(self, handle: 'str', *, tenant: 'str', run_id: 'str') -> 'str'; forget(self, *, tenant: 'str', run_id: 'str' = '') -> 'int'; put(self, handle: 'str', content: 'str', *, tenant: 'str', run_id: 'str', ttl_seconds: 'float') -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.claim_check.ClaimTicket¶
Stability: beta
What replaces an oversized result: the beginning of it, and where the rest is.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.claim_check.HANDLE_PREFIX¶
Stability: beta
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.claim_check.claim_handle¶
Stability: beta
Derive the handle identifying one stored result.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.claim_handle¶
Stability: beta
Derive the handle identifying one stored result.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.compatibility_breaks¶
Stability: beta
Every way current breaks a consumer written against previous, one message each.
def compatibility_breaks(previous: 'Mapping[str, Mapping[str, Any]]', current: 'Mapping[str, Mapping[str, Any]]') -> 'tuple[str, ...]'
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.compensation.Applied¶
Stability: beta
One forward action that really happened, and enough to take it back.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.compensation.CompensatedFailure¶
Stability: beta
A run that failed and left nothing applied behind it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.compensation.Compensating¶
Stability: beta · Kind: Protocol
What the runtime needs of a reversal, satisfied by @compensating_activity.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.compensation.CompensationIncomplete¶
Stability: beta
A run that failed and could not put everything back.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.compensation.CompensationLedger¶
Stability: beta · Kind: Protocol
Where the record of applied, un-reversed work lives.
class CompensationLedger(Protocol) {forget(self, *, tenant: 'str') -> 'int'; mark(self, reversal: 'Reversal') -> 'None'; outstanding(self, run_id: 'str', *, tenant: 'str', branch: 'str | None' = None) -> 'Sequence[Applied]'; record(self, action: 'Applied') -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.compensation.Reversal¶
Stability: beta
One attempt at taking one applied action back.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.compensation.ReversalOutcome¶
Stability: beta
What happened when one applied action was taken back.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.compensation.arguments_digest¶
Stability: beta
A stable fingerprint of what a call was given, safe to keep next to its key.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.config.AdkConfig¶
Stability: beta
The kit's resolved configuration. Frozen, fully typed, validated at startup.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.config.ConfigError¶
Stability: beta
Raised when configuration cannot be resolved, listing every problem at once.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.config.ConfigOverrides¶
Stability: beta
Typed code-layer configuration; unknown or misspelled keys fail static checks.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.config.ConfigProblem¶
Stability: beta
One reason the configuration cannot be used.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.config.ConfigResolution¶
Stability: beta
A resolved configuration together with the provenance of every key.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.config.DeadlineConfig¶
Stability: beta
Wall-clock ceilings for a run, in seconds. None means no ceiling at that layer.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.config.ENV_PREFIX¶
Stability: beta
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.config.Layer¶
Stability: beta
Exported value.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.config.LoopConfig¶
Stability: beta
How often a run may make the same call before it is treated as going nowhere.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.config.McpConfig¶
Stability: beta
The MCP servers this process may reach. Empty is a process that reaches none.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.config.McpServerConfig¶
Stability: beta
One declared MCP server, so adopting its tools is configuration rather than code.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.config.Provenance¶
Stability: beta
Where one resolved key came from, and what it beat.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.config.ProviderConfig¶
Stability: beta
Where the model provider lives and how long to wait for it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.config.RedactionConfig¶
Stability: beta
Redaction applied before anything is logged or exported.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.config.RepairConfig¶
Stability: beta
How many times an answer that did not validate may be sent back with the reason.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.config.RetryConfig¶
Stability: beta
When a failed attempt is worth making again, and how long to wait first.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.config.StoreConfig¶
Stability: beta
Endpoints for the optional stores. Absent means the integration is not in use.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.config.TelemetryConfig¶
Stability: beta
OpenTelemetry export. Case content is never an attribute; see docs/contributing.md.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.config.leaf_keys¶
Stability: beta
Map every dotted leaf key of a config model to its field.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.config.load_config¶
Stability: beta
Resolve configuration and return it, discarding the provenance.
def load_config(overrides: 'dict[str, Any] | None' = None, *, env: 'dict[str, str] | None' = None, path: 'Path | str | None' = None, start: 'Path | str | None' = '.') -> 'AdkConfig'
Typed errors: ConfigError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.config.load_typed_config¶
Stability: beta
Load statically checked code overrides without narrowing load_config.
def load_typed_config(overrides: 'ConfigOverrides | None' = None, *, env: 'dict[str, str] | None' = None, path: 'Path | str | None' = None, start: 'Path | str | None' = '.') -> 'AdkConfig'
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.config.resolve_config¶
Stability: beta
Resolve configuration from code, environment and file, and record where each key came from.
def resolve_config(overrides: 'dict[str, Any] | None' = None, *, env: 'dict[str, str] | None' = None, path: 'Path | str | None' = None, start: 'Path | str | None' = '.') -> 'ConfigResolution'
Typed errors: ConfigError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.config.resolve_typed_config¶
Stability: beta
Resolve statically checked code overrides through the stable config loader.
def resolve_typed_config(overrides: 'ConfigOverrides | None' = None, *, env: 'dict[str, str] | None' = None, path: 'Path | str | None' = None, start: 'Path | str | None' = '.') -> 'ConfigResolution'
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.config.secret_keys¶
Stability: beta
Dotted keys whose values are secret: environment-only, never rendered.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.content_policy.Classification¶
Stability: beta
What a classifier decided about one passage.
class Classification(AdkModel) {breaches(self, thresholds: 'Thresholds') -> 'tuple[ContentCategory, ...]'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.content_policy.ContentCategory¶
Stability: beta
What a passage is about, in the terms a policy is written in.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.content_policy.ContentClassifier¶
Stability: beta · Kind: Protocol
Anything that can say what a passage is about.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.content_policy.ContentSeverity¶
Stability: beta
How bad, ordered so a threshold is a comparison rather than a lookup table.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.content_policy.HeuristicClassifier¶
Stability: beta
A term-list classifier, so a kit consumer has something before they have a model.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.content_policy.Thresholds¶
Stability: beta
The severity at which each category is refused, for one tenant.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.cost.Cost¶
Stability: beta
What one call, or one whole run, came to.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.cost.CostConfidence¶
Stability: beta
How much of the number is known.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.cost.CountSource¶
Stability: beta
Who counted the tokens, which is the difference between a figure and a guess.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.cost.weaker_source¶
Stability: beta
The less trustworthy of two counting sources.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.credentials.CallCredential¶
Stability: beta · Kind: Protocol
The part of a minted credential a caller renders.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.credentials.CredentialSource¶
Stability: beta · Kind: Protocol
Whatever mints per-call credentials — tesserix_adk.tools.CredentialBroker does.
class CredentialSource(Protocol) {for_tool(self, *, identity: 'AgentIdentity', audience: 'str', needs: 'Iterable[str]', run_id: 'str', agent_version: 'str' = Ellipsis) -> 'CallCredential'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.credentials.ExpiringCredential¶
Stability: beta · Kind: Protocol
A credential that says when it stops working, so a run can replace it in time.
class ExpiringCredential(CallCredential, Protocol) {expired(self, now: 'float', *, skew: 'float' = Ellipsis) -> 'bool'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.credentials.ExpiringCredentialSource¶
Stability: beta · Kind: Protocol
A mint whose credentials carry an expiry.
class ExpiringCredentialSource(Protocol) {for_tool(self, *, identity: 'AgentIdentity', audience: 'str', needs: 'Iterable[str]', run_id: 'str', agent_version: 'str' = Ellipsis) -> 'ExpiringCredential'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.current_policy¶
Stability: beta
The policy bound here, or a refusal.
Typed errors: ConfigurationError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.current_principal¶
Stability: beta
The principal bound here, or a refusal.
Typed errors: AuthorisationError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.current_tenant¶
Stability: beta
The context bound here, or a refusal.
Typed errors: MissingTenantContextError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.deduplicate¶
Stability: beta
Drop repeated calls, keeping the first of each id.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.definition.AgentDefinition¶
Stability: beta
One agent, as the artifact that was reviewed.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.definition.Owner¶
Stability: beta
Who answers for an agent when it misbehaves.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.definition.TypedAgentDefinition¶
Stability: beta
A reviewed definition for a TypedAgent input and output contract.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.deprecate¶
Stability: beta
Mark a public function or class as deprecated on a fixed schedule.
def deprecate(*, since: 'str', removal: 'str', alternative: 'str', reason: 'str | None' = None) -> 'Callable[[_T], _T]'
Typed errors: DeprecationPolicyError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.deprecation.AdkDeprecationWarning¶
Stability: beta
Warns that a public name of the kit is scheduled for removal.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.deprecation.Deprecation¶
Stability: beta
A scheduled removal, as promised to consumers.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.deprecation.DeprecationPolicyError¶
Stability: beta
Raised when a deprecation would break the published versioning policy.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.deprecation.WARNINGS_AS_ERRORS_ENV¶
Stability: beta
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.deprecation.deprecate¶
Stability: beta
Mark a public function or class as deprecated on a fixed schedule.
def deprecate(*, since: 'str', removal: 'str', alternative: 'str', reason: 'str | None' = None) -> 'Callable[[_T], _T]'
Typed errors: DeprecationPolicyError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.deprecation.deprecations¶
Stability: beta
Every live deprecation, sorted by name.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.deprecations¶
Stability: beta
Every live deprecation, sorted by name.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.digest_of_arguments¶
Stability: beta
The digest an audit record carries in place of the payload.
def digest_of_arguments(arguments: 'Mapping[str, Any]', *, extra_patterns: 'Sequence[str]' = ()) -> 'str'
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.digest_of_token¶
Stability: beta
Return the SHA-256 of a token value, which is what a store may keep.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.dispatch.Dispatch¶
Stability: beta
A dependency graph, executed as wide as the dependencies allow.
Typed errors: ConfigurationError, DependencyCycleError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.dispatch.DispatchNode¶
Stability: beta
One piece of work and what it waits for.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.dispatch.DispatchResult¶
Stability: beta
What every node in one run of the graph did.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.dispatch.NodeOutcome¶
Stability: beta
How a node ended. A string enum so a log line and a span attribute agree.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.dispatch.NodeResult¶
Stability: beta
What one node did.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.AdkError¶
Stability: beta
Base class for every error raised by the kit.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.AggregationError¶
Stability: beta
Raised when concurrent branches did not add up to the aggregate that was asked for.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ApprovalBindingError¶
Stability: beta
Raised when a grant is asked to cover something other than what it was shown.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ApprovalDeliveryError¶
Stability: beta
Raised when the question could not be put in front of anybody.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ApprovalDeniedError¶
Stability: beta
Raised when a human declined a held tool call.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ApprovalExpiredError¶
Stability: beta
Raised when a decision arrived past the request's time to live.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ApprovalTokenError¶
Stability: beta
Raised when a token cannot buy the decision it was presented for.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.AttributionError¶
Stability: beta
Raised when spend could not be attributed to the participants that incurred it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.AuditUnavailableError¶
Stability: beta
Raised when a decision about an autonomous action could not be recorded.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.AuthenticationError¶
Stability: beta
Raised when a provider rejected the credential, or what it is allowed to reach.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.AuthorisationError¶
Stability: beta
Raised when work needs authority the run's effective scopes do not carry.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.AuthorityRevokedError¶
Stability: beta
Raised when the authority a run was acting on is gone rather than merely stale.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.AutonomyRefusedError¶
Stability: beta
Raised when an action is one no grant could ever have permitted.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.BaselineUnusableError¶
Stability: beta
Raised when the stored baseline cannot decide a change, so the gate refuses instead.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.BudgetExceededError¶
Stability: beta
Raised when a run would exceed its ceiling. Raised before the spend, not after.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.BudgetUnavailableError¶
Stability: beta
Raised when the ledger a shared ceiling lives in cannot be reached.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.CancelledError¶
Stability: beta
Raised when a run was cancelled. In-flight work stops; state becomes cancelled.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.CapabilityError¶
Stability: beta
Raised when something is asked of a provider that it has not declared it can do.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.CeilingExceededError¶
Stability: beta
Raised when an action would take more headroom than the ceiling has left.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.CheckpointFormatError¶
Stability: beta
Raised when a checkpoint was written by a kit version this one cannot read.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.CheckpointTooLargeError¶
Stability: beta
Raised when a run's frontier exceeds what a checkpoint may carry.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ChunkingError¶
Stability: beta
Raised when a run of text cannot be divided under the chunk token limit.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ClaimUnavailableError¶
Stability: beta
Raised when a checked-in tool result cannot be produced for the handle asked about.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ConfigurationError¶
Stability: beta
Raised when the kit is assembled in a way that cannot work.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ContentFilteredError¶
Stability: beta
Raised when a provider refused to process or to return content on policy grounds.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ContextBudgetError¶
Stability: beta
Raised when a prompt cannot be made to fit the tokens available for it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ContextWindowExceededError¶
Stability: beta
Raised when an assembled prompt is longer than the model declares it can read.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.CredentialError¶
Stability: beta
Raised when a tool could not obtain the credential its call needs.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.CredentialExpiredError¶
Stability: beta
Raised when the credential a call needs has lapsed and could not be replaced.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.DelegationError¶
Stability: beta
Raised when work handed to a worker did not come back as an answer.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.DelegationLimitError¶
Stability: beta
Raised when one agent may not hand work to another, and the run must say why.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.DependencyCycleError¶
Stability: beta
Raised when declared dependencies close a loop, so nothing in it could ever start.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.DuplicateInFlightError¶
Stability: beta
Raised when another worker of the same consumer group is handling this event now.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.EmbeddingDimensionError¶
Stability: beta
Raised when an embedding is not the width the collection was built with.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.EmbeddingUnavailableError¶
Stability: beta
Raised when an ingest cannot embed a batch and stops rather than filling the gap.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.EstimateUnavailableError¶
Stability: beta
Raised when a run's cost cannot be estimated on anything better than a guess.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.EvalIncompleteError¶
Stability: beta
Raised when a quality gate was asked to judge a partly scored dataset.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.EventIdReuseError¶
Stability: beta
Raised when a different event arrives under an id that is already recorded.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.EventLoopStalledError¶
Stability: beta
Raised when work blocked the event loop instead of awaiting on it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.EventPublishError¶
Stability: beta
Raised when an event could not be delivered and the delivery mode says that stops the run.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.EventTooLargeError¶
Stability: beta
Raised when an event is larger than the transport will carry.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ExtractionError¶
Stability: beta
Raised when a model's extraction output cannot be trusted as a subgraph.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.FallbackExhaustedError¶
Stability: beta
Raised when every model in a run's chain refused it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.FallbackUnsafeError¶
Stability: beta
Raised when another model cannot be tried without risking a repeated side effect.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.FanOutLimitError¶
Stability: beta
Raised when one turn, or one run, asked for more tool calls than its cap allows.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.GrantRevokedError¶
Stability: beta
Raised when the grant a run was acting under was withdrawn while it was under way.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.GuardrailError¶
Stability: beta
Base for what a guard decided and for what it could not decide.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.GuardrailEvaluationError¶
Stability: beta
Raised when a guard could not reach a verdict, which is not consent.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.GuardrailViolationError¶
Stability: beta
Raised when a guardrail rejects content. The step stops; it does not degrade.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.HandoffContractError¶
Stability: beta
Raised when a conversation could not be handed to the agent it was addressed to.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.HistoryUnavailableError¶
Stability: beta
Raised when a resume cannot get back the transcript its checkpoint points at.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.HookEvaluationError¶
Stability: beta
Raised when a hook could not be evaluated, which is a denial rather than a pass.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.HookRefusedError¶
Stability: beta
Raised when a hook refused the step. The reason is the hook's own.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.HookRegistrationError¶
Stability: beta
Raised when a hook cannot be added to a chain.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.IncomparableEvalError¶
Stability: beta
Raised when two eval runs cannot be compared to each other.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.IncompatiblePromptVersionError¶
Stability: beta
Raised when an alias may not be moved to a version the call sites cannot render.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.IndeterminateToolCallError¶
Stability: beta
Raised when a resume cannot say whether an effectful call already happened.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.InexactAmountError¶
Stability: beta
Raised when an amount cannot be counted against a ceiling without drifting.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.InvalidRequestError¶
Stability: beta
Raised when a provider rejected the request itself.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.IrreversibleActionError¶
Stability: beta
Raised when an action nothing can take back is about to run inside an unwindable scope.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.JudgeNotCalibratedError¶
Stability: beta
Raised when a model judge is used as a gate without demonstrated human agreement.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.LeaseLostError¶
Stability: beta
Raised when a worker acted on a claim it no longer holds.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.LoopLimitError¶
Stability: beta
Raised when a run hit one of the caps on its shape: how deep, how wide, how often.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.MaxIterationsError¶
Stability: beta
Raised when a run hit its iteration cap — the loop was bounded, and it hit the bound.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.McpAuthError¶
Stability: beta
Raised when an MCP server refused the credential a call presented.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.McpAuthReason¶
Stability: beta
Why an MCP server refused a call, kept apart because the three need different fixes.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.MediaIntakeError¶
Stability: beta
Raised when a document or recording could not be read into text.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.MemoryConflictError¶
Stability: beta
Raised when a supersession expected a version of a fact that is no longer live.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.MemoryContradictionError¶
Stability: beta
Raised when a scope holds contradictory beliefs that nothing may resolve for it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.MemoryCorruptionError¶
Stability: beta
Raised when a stored record no longer validates as the model it was written as.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.MemoryLimitError¶
Stability: beta
Raised when a value is larger than the adapter declared it can hold.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.MemoryScopeError¶
Stability: beta
Raised when a record is filed somewhere it does not say it belongs.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.MemoryUnavailableError¶
Stability: beta
Raised when a memory store could not be reached, after the retries were spent.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.MissingExtraError¶
Stability: beta
Raised when an optional integration is used without installing its extra.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.MissingTenantContextError¶
Stability: beta
Raised when scoped work is attempted with no tenant context bound.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ModelArtifactError¶
Stability: beta
Raised when a model file on disk is not one that can be loaded.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ModelResponseError¶
Stability: beta
Raised when a provider answered with something the kit cannot read as a response.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.NoEligibleModelError¶
Stability: beta
Raised when nothing the routing table offers can do the work asked of it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.NonDeterminismError¶
Stability: beta
Raised when replaying a recorded history against the current code diverges.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.PartialErasureError¶
Stability: beta
Raised when an erasure removed the records but could not reach a derived index.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.PayloadTooLargeError¶
Stability: beta
Raised when an activity input or result is larger than the transport will carry.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.PlanValidationError¶
Stability: beta
Raised when a plan is not something the runtime could execute as written.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.PoolExhaustedError¶
Stability: beta
Raised when every connection to a provider was in use and none came free in time.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.PrefixDriftError¶
Stability: beta
Raised when the frozen part of a prompt is not what was frozen.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.PromptNotFoundError¶
Stability: beta
Raised when a prompt name, version or alias does not exist in the registry.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.PromptRejectedError¶
Stability: beta
Raised when a stored prompt exists but may not be served.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ProtocolConformanceError¶
Stability: beta
Raised when an object does not provide every member of a protocol.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ProvenanceLostError¶
Stability: beta
Raised when compacting a conversation would drop a source it was carrying.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ProviderError¶
Stability: beta
Raised when a model provider fails, in the kit's own vocabulary.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ProviderTimeoutError¶
Stability: beta
Raised when a provider did not answer inside the deadline.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ProviderUnavailableError¶
Stability: beta
Raised when a provider could not be reached, or was reached and was not ready.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.QueueUnavailableError¶
Stability: beta
Raised when a work queue could not be reached.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.RETRYABLE_STATUS¶
Stability: beta
Build an immutable unordered collection of unique elements.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.RateLimitError¶
Stability: beta
Raised when a provider refused the call because too many were made.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.RecursionLimitError¶
Stability: beta
Raised when a run was called from too deep a chain of agents calling agents.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.RepeatedCallError¶
Stability: beta
Raised when the same tool was asked for with the same arguments past the threshold.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ResumeConflictError¶
Stability: beta
Raised when another worker is already carrying this run on.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.RetrievalDegradedError¶
Stability: beta
Raised when retrieval could not run every branch the caller required.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.RunLeaseError¶
Stability: beta
Raised when a worker tries to advance a run it does not hold the lease on.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.RunningLoopError¶
Stability: beta
Raised when a synchronous helper is called from inside a running event loop.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.SandboxError¶
Stability: beta
Raised when the sandbox stopped generated code, rather than the code stopping itself.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.SandboxMemoryError¶
Stability: beta
Raised when generated code asked for more memory than its ceiling allowed.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.SandboxTimeoutError¶
Stability: beta
Raised when generated code ran past a time ceiling and was killed.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.SchemaGenerationError¶
Stability: beta
Raised when a type cannot be faithfully described as a schema.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.SchemaViolationError¶
Stability: beta
Raised when a payload does not match the type declared for that boundary.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ScopeEscalationError¶
Stability: beta
Raised when a sub-agent asked to hold access the agent it acts for does not hold.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ScopeViolationError¶
Stability: beta
Raised when an operator action would reach across a tenant boundary.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.SecretResolutionError¶
Stability: beta
Raised when a credential could not be fetched for the reference that names it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.StateConflictError¶
Stability: beta
Raised when a state write named a version that has since moved.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.StateInUseError¶
Stability: beta
Raised when deleting a session would orphan runs that have not finished.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.StateMigrationError¶
Stability: beta
Raised when persisted state could not be brought forward into a record.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.StateNotFoundError¶
Stability: beta
Raised when a patch or a resume named state that is not there.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.StatePersistenceError¶
Stability: beta
Raised when a state store could not take a write, or could not be reached.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.StreamInterruptedError¶
Stability: beta
Raised when a stream stopped before the model had finished answering.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.TemplateError¶
Stability: beta
Raised when a prompt template, or a value for one, may not be rendered.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.TenantContextError¶
Stability: beta
Raised when a tenant context arriving from elsewhere cannot be trusted or read.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.TenantCrossingError¶
Stability: beta
Raised when a scope names a different tenant than the one it was entered from.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.TenantIsolationError¶
Stability: beta
Raised when stored data does not belong to the tenant the work is bound to.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.TenantLimitError¶
Stability: beta
Raised when a tenant's configuration does not permit what was asked for.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.TenantRefusal¶
Stability: beta
Type alias.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.TenantUnconfiguredError¶
Stability: beta
Raised when a tenant's configuration exists somewhere but could not be read.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ToolArgumentValidationError¶
Stability: beta
Raised when a model's tool-call arguments do not match the tool's own schema.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ToolDefinitionError¶
Stability: beta
Raised when a callable cannot be made into a tool.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ToolError¶
Stability: beta
Base of the tool taxonomy: something the run loop can branch on.
Typed errors: ValueError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ToolExecutionError¶
Stability: beta
Raised when a tool fails. The tool's own exception is the __cause__.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ToolFailure¶
Stability: beta
The tool tried and could not finish.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ToolNotFoundError¶
Stability: beta
Raised when nothing is registered under the name that was asked for.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ToolNotPermittedError¶
Stability: beta
Raised when a tool exists but this agent's allowlist does not name it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ToolRefusal¶
Stability: beta
The tool worked and declined. An answer, not a fault.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ToolResultError¶
Stability: beta
Raised when what a tool returned may not cross into the run as it stands.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.ToolTimedOutError¶
Stability: beta
Raised when one tool call outran the ceiling declared for that tool.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.TrustBoundaryError¶
Stability: beta
Raised when the only model left to try sits outside the run's trust boundary.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.UncitedClaimError¶
Stability: beta
Raised when a claim carries no citation at all.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.UngroundedCitationError¶
Stability: beta
Raised when an answer cites something the run did not retrieve.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.UnknownEventTypeError¶
Stability: beta
Raised when an event names a type this kit has no schema for.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.UnknownTenantError¶
Stability: beta
Raised when work arrives for a tenant nothing is configured for.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.UnsupportedEventVersionError¶
Stability: beta
Raised when an event's schema version is outside the window this kit can read.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.UnsupportedStateVersionError¶
Stability: beta
Raised when persisted state was written at a version this build cannot read.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.WorkItemNotFoundError¶
Stability: beta
Raised when a queue operation named an item the queue does not hold.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.WorkersBusyError¶
Stability: beta
Raised when a synchronous body could not be given a worker in time.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.errors.WriteQueueFullError¶
Stability: beta
Raised when an asynchronous write cannot be accepted because the queue is full.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.evaluate¶
Stability: beta
Every rule this answer breaks, in declaration order.
Typed errors: GuardrailEvaluationError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.event_schema.EVENT_SCHEMAS¶
Stability: beta
Which model validates which event type at which version, and how to move between them.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.event_schema.EventSchemaRegistry¶
Stability: beta
Which model validates which event type at which version, and how to move between them.
class EventSchemaRegistry(object) {current_version(self, event_type: 'EventType') -> 'int'; model_for(self, event_type: 'EventType', version: 'int') -> 'type[EventPayload]'; payload_of(self, envelope: 'EventEnvelope') -> 'EventPayload'; read(self, raw: 'str | bytes') -> 'EventEnvelope'; register(self, model: 'type[EventPayload]') -> 'None'; register_upcaster(self, event_type: 'EventType', *, from_version: 'int', upcast: 'Upcaster') -> 'None'; requires(self, event_type: 'EventType') -> 'int'; schemas(self) -> 'dict[str, dict[str, Any]]'; upcast(self, envelope: 'EventEnvelope') -> 'EventEnvelope'; versions(self, event_type: 'EventType') -> 'tuple[int, ...]'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.event_schema.Upcaster¶
Stability: beta
Type alias.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.event_schema.compatibility_breaks¶
Stability: beta
Every way current breaks a consumer written against previous, one message each.
def compatibility_breaks(previous: 'Mapping[str, Mapping[str, Any]]', current: 'Mapping[str, Mapping[str, Any]]') -> 'tuple[str, ...]'
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.event_schema.event_schemas¶
Stability: beta
The kit's contracts as JSON Schema. Written to docs/event-schemas.json and released.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.event_schema.read_envelope¶
Stability: beta
Decode an event another publisher wrote, upcast to the version this kit reads.
Typed errors: UnknownEventTypeError, UnsupportedEventVersionError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.event_schemas¶
Stability: beta
The kit's contracts as JSON Schema. Written to docs/event-schemas.json and released.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.events.ALLOWED_ATTRIBUTES¶
Stability: beta
Build an immutable unordered collection of unique elements.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.events.ApprovalDecided¶
Stability: beta
A human answered.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.events.ApprovalRequested¶
Stability: beta
A human was asked before something ran.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.events.BudgetExceeded¶
Stability: beta
A ceiling stopped the work.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.events.DEFAULT_MAX_EVENT_BYTES¶
Stability: beta
int([x]) -> integer int(x, base=10) -> integer
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.events.Delivery¶
Stability: beta
What a publisher that cannot deliver means for the run.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.events.EVENT_SCHEMA_VERSION¶
Stability: beta
int([x]) -> integer int(x, base=10) -> integer
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.events.EventEnvelope¶
Stability: beta
One event as it travels.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.events.EventPayload¶
Stability: beta
What happened, as attributes drawn from the allowlist.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.events.EventPublisher¶
Stability: beta · Kind: Protocol
Where events go. Implemented by a broker adapter, faked in tests, or absent.
class EventPublisher(Protocol) {publish(self, event: 'EventEnvelope') -> 'None'; publish_batch(self, events: 'tuple[EventEnvelope, ...]') -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.events.EventType¶
Stability: beta
Everything the kit reports. A consumer switches on this and nothing else.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.events.Eventing¶
Stability: beta
Builds envelopes from payloads and publishes them under one delivery mode.
class Eventing(object) {emit(self, payload: 'EventPayload', *, caused_by: 'EventEnvelope | None' = None) -> 'EventEnvelope | None'; emit_all(self, payloads: 'Iterable[EventPayload]', *, caused_by: 'EventEnvelope | None' = None) -> 'PublishReport'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.events.EventsReplayed¶
Stability: beta
An operator redelivered dead-lettered events. The audit record of a recovery.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.events.MemoryErased¶
Stability: beta
A subject's records were erased, which downstream stores have to hear about.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.events.NullEventPublisher¶
Stability: beta
The default. Publishes nowhere, so eventing is optional rather than mandatory.
class NullEventPublisher(object) {publish(self, event: 'EventEnvelope') -> 'None'; publish_batch(self, events: 'tuple[EventEnvelope, ...]') -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.events.PublishReport¶
Stability: beta
What became of a batch.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.events.RunCancelled¶
Stability: beta
A run stopped because something asked it to.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.events.RunCompleted¶
Stability: beta
A run finished on its own terms.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.events.RunFailed¶
Stability: beta
A run ended in a failure.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.events.RunStarted¶
Stability: beta
A run began.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.events.ToolCallCompleted¶
Stability: beta
A tool call came back, one way or another.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.events.ToolCallRequested¶
Stability: beta
A tool call was about to go out.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.exact¶
Stability: beta
amount as a Decimal, or a typed refusal.
Typed errors: InexactAmountError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.extras.require_extra¶
Stability: beta
Import an optional dependency, or say which extra provides it.
Typed errors: MissingExtraError, ModuleNotFoundError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.fallback.FallbackChain¶
Stability: beta
The models one run may be attempted against, in order.
class FallbackChain(AdkModel) {after(self, ref: 'str', *, failed: 'Collection[str]' = ()) -> 'str | None'; refuse_the_excluded(self) -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.fallback.fallback_eligible¶
Stability: beta
Whether another model may be asked the same question after failure.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.fallback_eligible¶
Stability: beta
Whether another model may be asked the same question after failure.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.guards.GuardResult¶
Stability: beta
One guard's answer about one piece of content.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.guards.GuardStage¶
Stability: beta
Where in a run a check happened. Carried on every verdict and every refusal.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.guards.GuardVerdict¶
Stability: beta
What a guard decided.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.guards.GuardrailPipeline¶
Stability: beta
An ordered, fail-closed chain of guards over one stage of a run.
class GuardrailPipeline(object) {check_input(self, content: 'str') -> 'str'; check_output(self, content: 'str') -> 'str'; check_stream(self, chunks: 'AsyncIterator[str]') -> 'AsyncIterator[str]'}
Typed errors: ConfigurationError, ProtocolConformanceError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.header_of¶
Stability: beta
Encode context as the value of the adk-tenant header.
Typed errors: TenantContextError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.hooks.ApprovalDecision¶
Stability: beta
A human's answer about one held call.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.hooks.ApprovalDenial¶
Stability: beta
What a denied or expired approval means to the run.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.hooks.ApprovalGate¶
Stability: beta · Kind: Protocol
Where a run waits for a human to decide about a tool call.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.hooks.ApprovalPolicy¶
Stability: beta
When a tool may not run without a human, decided by code rather than by the model.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.hooks.ApprovalPredicate¶
Stability: beta
Type alias.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.hooks.ApprovalRecord¶
Stability: beta
A tool call held for a human decision, in a form safe to put in a queue.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.hooks.ApprovalTransport¶
Stability: beta · Kind: Protocol
How the question reaches whoever answers it, apart from where the run waits.
class ApprovalTransport(Protocol) {deliver(self, record: 'ApprovalRecord') -> 'ApprovalDecision | None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.hooks.Hook¶
Stability: beta · Kind: Protocol
A policy attached to declared points in the loop.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.hooks.HookAction¶
Stability: beta
What a hook may say, ordered from least to most restrictive.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.hooks.HookChain¶
Stability: beta
The hooks a runner enforces, in declaration order.
class HookChain(object) {at(self, point: 'HookPoint') -> 'tuple[Hook, ...]'; register(self, hook: 'Hook') -> 'None'; sealed(self) -> 'HookChain'}
Typed errors: HookRegistrationError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.hooks.HookDecision¶
Stability: beta
One hook's answer at one point.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.hooks.HookPoint¶
Stability: beta
The seven places a run stops to ask.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.hooks.HookSubject¶
Stability: beta
What a hook is told about the step it is being asked about.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.hooks.resolve_hooks¶
Stability: beta
Return the decision that holds when several hooks answer at one point.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.idempotency.Claim¶
Stability: beta
What the store said when a call asked to run.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.idempotency.Idempotency¶
Stability: beta
What happens when the same call runs twice.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.idempotency.IdempotencyPolicy¶
Stability: beta
A tool's declaration about repeating it, and what identifies one call.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.idempotency.IdempotencyStore¶
Stability: beta · Kind: Protocol
Where the record of an executed side effect lives.
class IdempotencyStore(Protocol) {abandon(self, key: 'str', *, tenant: 'str') -> 'None'; begin(self, key: 'str', *, tenant: 'str', ttl_seconds: 'float') -> 'Claim'; forget(self, *, tenant: 'str') -> 'int'; record(self, key: 'str', *, tenant: 'str', outcome: 'str', ttl_seconds: 'float') -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.idempotency.idempotency_key¶
Stability: beta
Derive the key identifying one side effect, or None where it cannot be derived.
def idempotency_key(*, tenant: 'str', run_id: 'str', tool: 'str', arguments: 'Mapping[str, Any]', key_arguments: 'tuple[str, ...]' = ()) -> 'str | None'
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.idempotency_key¶
Stability: beta
Derive the key identifying one side effect, or None where it cannot be derived.
def idempotency_key(*, tenant: 'str', run_id: 'str', tool: 'str', arguments: 'Mapping[str, Any]', key_arguments: 'tuple[str, ...]' = ()) -> 'str | None'
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.identity.AgentIdentity¶
Stability: beta
What one agent may do on one run: its declaration, cut down to the caller's grant.
class AgentIdentity(object) {check(self, required: 'Iterable[str]', *, where: 'str' = '') -> 'None'; check_live(self, now: 'float', *, where: 'str' = '') -> 'None'; missing(self, required: 'Iterable[str]') -> 'tuple[str, ...]'; narrowed(self, *, agent: 'str', declared: 'Iterable[str]') -> 'Self'; permits(self, scope: 'str') -> 'bool'; unused(self, used: 'Iterable[str]') -> 'tuple[str, ...]'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.identity.AuthMethod¶
Stability: beta
How the principal was established, which is what its expiry means.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.identity.Principal¶
Stability: beta
Who a run acts for, and what they were granted.
class Principal(AdkModel) {delegating(self, *, until: 'float', scopes: 'Iterable[str] | None' = None) -> 'Self'; expired(self, now: 'float') -> 'bool'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.identity.ScopeSet¶
Stability: beta
A set of scopes that can be narrowed and never widened.
class ScopeSet(object) {missing(self, required: 'Iterable[str]') -> 'tuple[str, ...]'; narrowed_to(self, other: 'ScopeSet') -> 'ScopeSet'; permits(self, scope: 'str') -> 'bool'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.identity.current_principal¶
Stability: beta
The principal bound here, or a refusal.
Typed errors: AuthorisationError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.identity.principal_here¶
Stability: beta
The principal bound here, or None outside a scope.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.identity.principal_scope¶
Stability: beta
Bind who a run acts for, restoring what was there before.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.in_payload¶
Stability: beta
payload with the context added under PAYLOAD_KEY.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.injection.InjectionSignal¶
Stability: beta
One thing screening recognised, and where.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.injection.SignalKind¶
Stability: beta
What a screener recognised. Named, because "suspicious" is not actionable.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.injection.screen¶
Stability: beta
Recognise instruction-shaped and tool-call-shaped text in a passage.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.instrumentation.Instrumentation¶
Stability: beta
Emits a run-rooted trace with no per-agent wiring.
class Instrumentation(object) {run(self, run_id: 'str', **attributes: 'str') -> 'Iterator[RunSpan]'; step(self, kind: 'SpanKind', name: 'str', *, attempt: 'int' = 1, **attributes: 'str') -> 'Iterator[Span]'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.instrumentation.Recording¶
Stability: beta
One finished span.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.instrumentation.RunSpan¶
Stability: beta
The root span, plus the trace it collected once the run is over.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.instrumentation.SPAN_NAMES¶
Stability: beta
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.instrumentation.Sampling¶
Stability: beta
Which runs are exported.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.instrumentation.Span¶
Stability: beta
A span while it is open. Setting anything on it is a dictionary write, never I/O.
class Span(object) {first_token(self) -> 'None'; iterated(self, count: 'int' = 1) -> 'None'; set(self, **attributes: 'str') -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.instrumentation.SpanKind¶
Stability: beta
What a span covers. One kind per stage a run can spend time in.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.instrumentation.SpanLimits¶
Stability: beta
Bounds on what one run may record.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.instrumentation.SpanStatus¶
Stability: beta
How a span ended.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.instrumentation.TelemetryLoss¶
Stability: beta
What was not exported, counted locally.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.instrumentation.Trace¶
Stability: beta
Everything one run recorded.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.instrumentation.span_here¶
Stability: beta
The span open right now, or None outside any. What an emitted event parents itself to.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.lease.DEFAULT_LEASE¶
Stability: beta
How long a lease lives and when its holder should renew it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.lease.LeasePolicy¶
Stability: beta
How long a lease lives and when its holder should renew it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.lease.LeaseStore¶
Stability: beta · Kind: Protocol
Where the one-holder-at-a-time decision is made.
class LeaseStore(Protocol) {acquire(self, run_id: 'str', *, tenant: 'str', holder: 'str', ttl_seconds: 'float') -> 'RunLease'; held(self, run_id: 'str', *, tenant: 'str') -> 'RunLease | None'; release(self, lease: 'RunLease') -> 'None'; renew(self, lease: 'RunLease', *, ttl_seconds: 'float') -> 'RunLease'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.lease.RunLease¶
Stability: beta
One worker's claim on one run, for a bounded time.
class RunLease(AdkModel) {held_at(self, now: 'float') -> 'bool'; superseded_by(self, other: 'RunLease') -> 'bool'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ledger.LedgerKey¶
Stability: beta
Whose window this is.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ledger.Reservation¶
Stability: beta
An allowance held while a run spends it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ledger.SEPARATOR¶
Stability: beta
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ledger.SpendLedger¶
Stability: beta · Kind: Protocol
Where a shared ceiling is actually enforced.
class SpendLedger(Protocol) {forget(self, tenant: 'str') -> 'WindowSpend'; read_window(self, key: 'LedgerKey') -> 'WindowSpend'; reconcile(self) -> 'int'; record_progress(self, reservation: 'Reservation', spent: 'Decimal') -> 'None'; release(self, reservation: 'Reservation') -> 'None'; reserve(self, key: 'LedgerKey', amount: 'Decimal', *, ceiling: 'Decimal', lease_seconds: 'float' = Ellipsis) -> 'Reservation'; settle(self, reservation: 'Reservation', actual: 'Decimal') -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ledger.Window¶
Stability: beta
The period a ceiling applies over.
class Window(AdkModel) {bucket(self, now: 'float') -> 'int'; opened_at(self, now: 'float') -> 'float'; resets_at(self, now: 'float') -> 'float'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ledger.WindowKind¶
Stability: beta
How a window's boundary is decided.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.ledger.WindowSpend¶
Stability: beta
What a window holds right now.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.legal_transitions¶
Stability: beta
The states a run in state may move to. Empty for every terminal state.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.lint_directory¶
Stability: beta
Lint every prompt file under directory, for a project to run in CI.
def lint_directory(directory: 'Path', *, suffixes: 'tuple[str, ...]' = ('.toml', '.txt', '.md', '.prompt')) -> 'LintReport'
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.lint_prompt¶
Stability: beta
Lint one prompt body, wherever it is kept.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.literal_credentials¶
Stability: beta
Fields that look like credentials and hold a literal rather than a reference.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.load_config¶
Stability: beta
Resolve configuration and return it, discarding the provenance.
def load_config(overrides: 'dict[str, Any] | None' = None, *, env: 'dict[str, str] | None' = None, path: 'Path | str | None' = None, start: 'Path | str | None' = '.') -> 'AdkConfig'
Typed errors: ConfigError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.load_typed_config¶
Stability: beta
Load statically checked code overrides without narrowing load_config.
def load_typed_config(overrides: 'ConfigOverrides | None' = None, *, env: 'dict[str, str] | None' = None, path: 'Path | str | None' = None, start: 'Path | str | None' = '.') -> 'AdkConfig'
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.looks_sensitive¶
Stability: beta
Whether value contains anything shaped like a secret.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.members_of¶
Stability: beta
Return the member names a protocol requires, sorted.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.mint_token¶
Stability: beta
Issue a token for record, good for ttl_seconds from issued_at.
def mint_token(record: 'ApprovalRecord', *, issued_at: 'float' = 0.0, ttl_seconds: 'float' = 259200.0) -> 'ApprovalToken'
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.models.AdkModel¶
Stability: beta
Frozen, strict, and closed to fields it does not declare.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.models.InputT¶
Stability: beta
Type variable.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.models.NoOutput¶
Stability: beta
The answer type of an agent that answers in prose: there is not one.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.models.OutputT¶
Stability: beta
Type variable.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.models.Sensitive¶
Stability: beta
Marks a field that must not reach telemetry.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.models.parsed_from_strings¶
Stability: beta
Parse value as annotation, accepting a string where the source only has strings.
Typed errors: SchemaViolationError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.models.telemetry_dump¶
Stability: beta
Dump model for a span, a metric or a log line, without its sensitive fields.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.models.validated¶
Stability: beta
Validate payload as model, or raise naming every field that failed.
Typed errors: SchemaViolationError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.most_restrictive¶
Stability: beta
The tightest applicable ceiling in each dimension, with its source recorded.
Typed errors: ConfigurationError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.of_payload¶
Stability: beta
Read the context back out of a payload, or refuse it.
Typed errors: TenantContextError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.output_policy.Abstention¶
Stability: beta
An answer of "I do not know", typed rather than a plausible invented alternative.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.output_policy.Bounded¶
Stability: beta
A numeric field that has to stay inside a band.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.output_policy.Invariant¶
Stability: beta
A rule about the answer as a whole, for the ones that are not about one field.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.output_policy.OneOf¶
Stability: beta
A field that has to be one of a known set.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.output_policy.Policy¶
Stability: beta · Kind: Protocol
A deterministic rule about a parsed answer.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.output_policy.PolicyReport¶
Stability: beta
Kept for the caller that asked what was violated, without what was answered.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.output_policy.PolicyViolation¶
Stability: beta
One rule an answer broke.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.output_policy.RequiresCitation¶
Stability: beta
An assertion drawn from retrieved content has to say where it came from.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.output_policy.evaluate¶
Stability: beta
Every rule this answer breaks, in declaration order.
Typed errors: GuardrailEvaluationError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.output_policy.reach¶
Stability: beta
The value at a dotted path inside result.
Typed errors: GuardrailEvaluationError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.packed¶
Stability: beta
A record as the text a store holds, versioned and canonical.
def packed(record: 'AdkModel', *, kind: 'str', preserved: 'Mapping[str, Any] | None' = None, registry: 'StateRegistry | None' = None) -> 'str'
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.parsed_from_strings¶
Stability: beta
Parse value as annotation, accepting a string where the source only has strings.
Typed errors: SchemaViolationError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.persistence.CURRENT_VERSIONS¶
Stability: beta
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.persistence.Envelope¶
Stability: beta
A persisted payload and the version it was written at.
class Envelope(AdkModel) {digest(self) -> 'str'; opened(self, model: 'type[ModelT]') -> 'ModelT'; preserved(self, model: 'type[ModelT]') -> 'dict[str, Any]'; to_json(self) -> 'str'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.persistence.STATE_REGISTRY¶
Stability: beta
Which version each kind is written at, and how to read the versions before it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.persistence.SUPPORTED_WINDOW¶
Stability: beta
int([x]) -> integer int(x, base=10) -> integer
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.persistence.StateKind¶
Stability: beta
A thing the kit persists. Migrations are registered per kind, not per store.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.persistence.StateMigration¶
Stability: beta
One version step, applied on read.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.persistence.StateRegistry¶
Stability: beta
Which version each kind is written at, and how to read the versions before it.
class StateRegistry(object) {oldest(self, kind: 'str') -> 'int'; register(self, migration: 'StateMigration') -> 'None'; upgraded(self, envelope: 'Envelope') -> 'Envelope'; version(self, kind: 'str') -> 'int'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.persistence.canonical_json¶
Stability: beta
Serialise state to the one form it hashes and compares by.
Typed errors: TypeError, ValueError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.persistence.packed¶
Stability: beta
A record as the text a store holds, versioned and canonical.
def packed(record: 'AdkModel', *, kind: 'str', preserved: 'Mapping[str, Any] | None' = None, registry: 'StateRegistry | None' = None) -> 'str'
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.persistence.revived¶
Stability: beta
The counterpart of canonical_json: tagged moments and decimals back as themselves.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.persistence.unpacked¶
Stability: beta
A record back from what a store held, migrated on the way.
def unpacked(text: 'str', model: 'type[ModelT]', *, kind: 'str', registry: 'StateRegistry | None' = None) -> 'ModelT'
Typed errors: StateMigrationError, UnsupportedStateVersionError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.pii.DEFAULT_DETECTORS¶
Stability: beta
Built-in immutable sequence.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.pii.PIIDetector¶
Stability: beta · Kind: Protocol
Anything that can find identifiers in a passage.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.pii.PIIKind¶
Stability: beta
What kind of identifier was found. The placeholder keeps it, so reasoning survives.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.pii.PIIMatch¶
Stability: beta
One identifier, located but not carried.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.pii.PatternDetector¶
Stability: beta
A detector built from one shape, optionally checked before it is believed.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.pii.Redacted¶
Stability: beta
What a passage became, and what was taken out of it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.pii.placeholder¶
Stability: beta
The stand-in for one value: its type, and a pseudonym stable within the tenant.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.pii.redact¶
Stability: beta
Replace every identifier in text with a placeholder that stands in for it.
def redact(text: 'str', *, tenant: 'str', detectors: 'Sequence[PIIDetector]' = (PatternDetector('card'), PatternDetector('email'), PatternDetector('iban'), PatternDetector('bearer_token'), PatternDetector('api_key'), PatternDetector('national_id'), PatternDetector('passport'), PatternDetector('phone')), threshold: 'float' = 0.6, allow: 'Iterable[str]' = ()) -> 'Redacted'
Typed errors: GuardrailEvaluationError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.placeholder¶
Stability: beta
The stand-in for one value: its type, and a pseudonym stable within the tenant.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.policy_here¶
Stability: beta
The policy bound here, or None outside one.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.primitives.BinaryPart¶
Stability: beta
Bytes in a message — an image, an audio clip, a scanned document.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.primitives.ContentPart¶
Stability: beta
Runtime representation of an annotated type.
ContentPart = typing.Annotated[tesserix_adk.core.primitives.TextPart | tesserix_adk.core.primitives.BinaryPart, FieldInfo(annotation=NoneType, required=True, discriminator='kind')]
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.primitives.Message¶
Stability: beta
One turn in a conversation.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.primitives.Role¶
Stability: beta
Exported value.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.primitives.TextPart¶
Stability: beta
Text in a message.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.primitives.ToolCall¶
Stability: beta
A model's request to run a tool.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.primitives.Usage¶
Stability: beta
What one step consumed, and what it cost if the cost is knowable.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.primitives.deduplicate¶
Stability: beta
Drop repeated calls, keeping the first of each id.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.principal_here¶
Stability: beta
The principal bound here, or None outside a scope.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.principal_scope¶
Stability: beta
Bind who a run acts for, restoring what was there before.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.prompt_digest¶
Stability: beta
The content address of prompt text.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.prompt_lint.LintFinding¶
Stability: beta
One thing a prompt says that a tool should decide instead.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.prompt_lint.LintReport¶
Stability: beta
What one run of the check found, over one prompt or a whole directory.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.prompt_lint.LintRule¶
Stability: beta
One thing a prompt may not say, and what to do instead.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.prompt_lint.PROMPT_SUFFIXES¶
Stability: beta
Built-in immutable sequence.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.prompt_lint.RULES¶
Stability: beta
Built-in immutable sequence.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.prompt_lint.Severity¶
Stability: beta
Exported value.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.prompt_lint.lint_directory¶
Stability: beta
Lint every prompt file under directory, for a project to run in CI.
def lint_directory(directory: 'Path', *, suffixes: 'tuple[str, ...]' = ('.toml', '.txt', '.md', '.prompt')) -> 'LintReport'
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.prompt_lint.lint_prompt¶
Stability: beta
Lint one prompt body, wherever it is kept.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.prompts.FilePromptRegistry¶
Stability: beta
Prompts as one TOML file per name, versions and aliases inside it.
class FilePromptRegistry(object) {get(self, name: 'str', *, version: 'str' = '', alias: 'str' = '', tenant: 'str' = '') -> 'PromptDefinition'; list_versions(self, name: 'str', *, tenant: 'str' = '') -> 'tuple[str, ...]'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.prompts.PromptDefinition¶
Stability: beta
One published version of one prompt.
class PromptDefinition(AdkModel) {fits(self, window_tokens: 'int', *, share: 'float' = 0.5) -> 'bool'; instruct(self, agent: 'Agent[OutputT]') -> 'Agent[OutputT]'; instruct_typed(self, agent: 'TypedAgent[InputT, OutputT]') -> 'TypedAgent[InputT, OutputT]'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.prompts.PromptRef¶
Stability: beta
What a run and its spans record about the prompt that produced them.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.prompts.PromptRegistry¶
Stability: beta · Kind: Protocol
Where prompt text is read from. The protocol is the stable surface.
class PromptRegistry(Protocol) {get(self, name: 'str', *, version: 'str' = '', alias: 'str' = '', tenant: 'str' = '') -> 'PromptDefinition'; list_versions(self, name: 'str', *, tenant: 'str' = '') -> 'tuple[str, ...]'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.prompts.prompt_digest¶
Stability: beta
The content address of prompt text.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.propagation.HEADER¶
Stability: beta
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.propagation.MAX_HEADER_BYTES¶
Stability: beta
int([x]) -> integer int(x, base=10) -> integer
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.propagation.PAYLOAD_KEY¶
Stability: beta
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.propagation.VERSION¶
Stability: beta
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.propagation.arriving¶
Stability: beta
Bind the incoming message's tenant for the length of handling it.
def arriving(headers: 'Mapping[str, str]', *, authenticated: 'str | None' = None) -> 'Iterator[TenantContext]'
Typed errors: TenantContextError, TenantCrossingError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.propagation.carried¶
Stability: beta
The headers to merge into an outgoing request.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.propagation.header_of¶
Stability: beta
Encode context as the value of the adk-tenant header.
Typed errors: TenantContextError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.propagation.in_payload¶
Stability: beta
payload with the context added under PAYLOAD_KEY.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.propagation.of_payload¶
Stability: beta
Read the context back out of a payload, or refuse it.
Typed errors: TenantContextError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.propagation.restored¶
Stability: beta
Read the context off an incoming message, or refuse it.
def restored(headers: 'Mapping[str, str]', *, authenticated: 'str | None' = None) -> 'TenantContext'
Typed errors: TenantContextError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.protocols.BudgetPolicy¶
Stability: beta · Kind: Protocol
Spend and usage limits applied before and after a metered call.
class BudgetPolicy(Protocol) {check(self) -> 'BudgetDecision'; child(self) -> 'BudgetPolicy'; limits(self) -> 'BudgetLimits'; record(self, usage: 'Usage', *, model_calls: 'int' = 0, tool_calls: 'int' = 0, iterations: 'int' = 0, peer_invocations: 'int' = 0) -> 'None'; reserve(self, estimate: 'int') -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.protocols.Clock¶
Stability: beta · Kind: Protocol
Source of time, injected so that behaviour under time is testable.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.protocols.DeclaresEmulation¶
Stability: beta · Kind: Protocol
A provider with an opinion about being stood in for.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.protocols.Guardrail¶
Stability: beta · Kind: Protocol
An inline check on what enters a run and on what leaves it.
class Guardrail(Protocol) {check_input(self, content: 'str') -> 'GuardResult'; check_output(self, content: 'str') -> 'GuardResult'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.protocols.IdFactory¶
Stability: beta · Kind: Protocol
Source of identifiers, injected so that a run can be compared with another.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.protocols.KeyValueStore¶
Stability: beta · Kind: Protocol
Durable key-to-value storage, for whatever a caller wants keyed.
class KeyValueStore(Protocol) {delete(self, key: 'str') -> 'None'; get(self, key: 'str') -> 'Any'; put(self, key: 'str', value: 'Any') -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.protocols.ModelProvider¶
Stability: beta · Kind: Protocol
A source of model completions.
class ModelProvider(Protocol) {complete(self, request: 'ModelRequest') -> 'ModelResponse'; count_tokens(self, messages: 'Sequence[Message]') -> 'int'; stream(self, request: 'ModelRequest') -> 'AsyncIterator[StreamEvent]'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.protocols.SecretProvider¶
Stability: beta · Kind: Protocol
Where a credential is looked up, asked once per use rather than once per process.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.protocols.ToolRegistry¶
Stability: beta · Kind: Protocol
The set of tools an agent may call, and their declared schemas.
class ToolRegistry(Protocol) {declarations(self) -> 'Any'; invoke(self, name: 'str', arguments: 'Any') -> 'Any'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.protocols.Tracer¶
Stability: beta · Kind: Protocol
Sideband emission of spans and events.
class Tracer(Protocol) {event(self, name: 'str', **attributes: 'Any') -> 'None'; span(self, name: 'str', **attributes: 'Any') -> 'Any'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.protocols.members_of¶
Stability: beta
Return the member names a protocol requires, sorted.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.protocols.verify_conformance¶
Stability: beta
Raise unless obj provides every member protocol requires.
Typed errors: ProtocolConformanceError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.provenance.ContentSource¶
Stability: beta
Where content came from, in the form a reviewer would go and look it up by.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.provenance.Origin¶
Stability: beta
What produced a piece of content. The one input to its trust level.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.provenance.TRUST_BY_ORIGIN¶
Stability: beta
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.provenance.TrustLevel¶
Stability: beta
How far content may act, decided by where it came from.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.provenance.sealed¶
Stability: beta
Return content in a data envelope whose delimiter it cannot forge or close.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.provenance.weakest¶
Stability: beta
The lowest trust among everything that went into a piece of content.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.provider.ModelRequest¶
Stability: beta
One call to a provider, as data.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.provider.ModelResponse¶
Stability: beta
What a provider returned for one call.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.provider.ProviderName¶
Stability: beta
Exported value.
ProviderName = typing.Literal['anthropic', 'gemini', 'grok', 'groq', 'llama.cpp', 'ollama', 'openai', 'openai-compatible', 'openrouter', 'tgi', 'vllm', 'xai']
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.provider.StopReason¶
Stability: beta
Why a model stopped generating, in the kit's words rather than a vendor's.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.provider.ToolDeclaration¶
Stability: beta
A tool as the model is told about it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.pseudonym¶
Stability: beta
A stable stand-in for a person, for an audit record that outlives their consent.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.queue.QueuePolicy¶
Stability: beta
How long a claim lasts, how often it may be retried, and how long it waits.
class QueuePolicy(AdkModel) {backoff_for(self, attempts: 'int') -> 'float'; claimed(self, item: 'WorkItem', *, worker: 'str', now: 'float', lease_seconds: 'float | None' = None) -> 'WorkItem'; completed(self, item: 'WorkItem') -> 'WorkItem'; exhausted(self, attempts: 'int') -> 'bool'; overheld(self, item: 'WorkItem', now: 'float') -> 'bool'; renewed(self, item: 'WorkItem', *, now: 'float') -> 'WorkItem'; returned(self, item: 'WorkItem', *, error: 'str', now: 'float', retryable: 'bool' = True, backoff: 'bool' = True) -> 'WorkItem'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.queue.QueueStats¶
Stability: beta
What the queue looks like right now, for the metrics a deployment alerts on.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.queue.WorkItem¶
Stability: beta
One unit of work, as the queue holds it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.queue.WorkPriority¶
Stability: beta
How soon an item is claimed relative to its tenant's other work.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.queue.WorkQueue¶
Stability: beta · Kind: Protocol
Where work waits for a worker, and what becomes of it when one dies holding it.
class WorkQueue(Protocol) {adopt(self, *, worker: 'str') -> 'tuple[WorkItem, ...]'; claim(self, *, worker: 'str', queue: 'str' = 'default', lease_seconds: 'float | None' = None) -> 'WorkItem | None'; complete(self, item_id: 'str', *, tenant: 'str', worker: 'str') -> 'WorkItem'; dead_letters(self, *, tenant: 'str', limit: 'int' = 50) -> 'tuple[WorkItem, ...]'; enqueue(self, item: 'WorkItem') -> 'WorkItem'; fail(self, item_id: 'str', *, tenant: 'str', worker: 'str', error: 'str', retryable: 'bool' = True) -> 'WorkItem'; heartbeat(self, item_id: 'str', *, tenant: 'str', worker: 'str') -> 'WorkItem'; reap(self) -> 'tuple[WorkItem, ...]'; stats(self, *, queue: 'str' = 'default') -> 'QueueStats'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.queue.WorkState¶
Stability: beta
Where an item is.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.reach¶
Stability: beta
The value at a dotted path inside result.
Typed errors: GuardrailEvaluationError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.read_envelope¶
Stability: beta
Decode an event another publisher wrote, upcast to the version this kit reads.
Typed errors: UnknownEventTypeError, UnsupportedEventVersionError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.redact¶
Stability: beta
Replace every identifier in text with a placeholder that stands in for it.
def redact(text: 'str', *, tenant: 'str', detectors: 'Sequence[PIIDetector]' = (PatternDetector('card'), PatternDetector('email'), PatternDetector('iban'), PatternDetector('bearer_token'), PatternDetector('api_key'), PatternDetector('national_id'), PatternDetector('passport'), PatternDetector('phone')), threshold: 'float' = 0.6, allow: 'Iterable[str]' = ()) -> 'Redacted'
Typed errors: GuardrailEvaluationError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.redaction.MASK¶
Stability: beta
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.redaction.SENSITIVE_SHAPES¶
Stability: beta
Built-in immutable sequence.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.redaction.looks_sensitive¶
Stability: beta
Whether value contains anything shaped like a secret.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.redaction.scrub¶
Stability: beta
Return value with each sensitive-looking run replaced by MASK.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.rendering.PromptTemplate¶
Stability: beta
A prompt body whose every slot is declared, typed and checked before it renders.
class PromptTemplate(AdkModel) {render(self, values: 'Mapping[str, object]', *, window_tokens: 'int' = 0) -> 'Rendered'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.rendering.Rendered¶
Stability: beta
One rendered prompt, and what may be said about it without quoting it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.rendering.Variable¶
Stability: beta
One slot a template declares, and what may go in it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.rendering.wrap_untrusted¶
Stability: beta
Return content marked as data the model must not take instruction from.
Typed errors: ValueError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.require_extra¶
Stability: beta
Import an optional dependency, or say which extra provides it.
Typed errors: MissingExtraError, ModuleNotFoundError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.resolve_config¶
Stability: beta
Resolve configuration from code, environment and file, and record where each key came from.
def resolve_config(overrides: 'dict[str, Any] | None' = None, *, env: 'dict[str, str] | None' = None, path: 'Path | str | None' = None, start: 'Path | str | None' = '.') -> 'ConfigResolution'
Typed errors: ConfigError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.resolve_hooks¶
Stability: beta
Return the decision that holds when several hooks answer at one point.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.resolve_tenant_policy¶
Stability: beta
The policy for the tenant bound here.
Typed errors: MissingTenantContextError, TenantUnconfiguredError, UnknownTenantError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.resolve_typed_config¶
Stability: beta
Resolve statically checked code overrides through the stable config loader.
def resolve_typed_config(overrides: 'ConfigOverrides | None' = None, *, env: 'dict[str, str] | None' = None, path: 'Path | str | None' = None, start: 'Path | str | None' = '.') -> 'ConfigResolution'
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.restored¶
Stability: beta
Read the context off an incoming message, or refuse it.
def restored(headers: 'Mapping[str, str]', *, authenticated: 'str | None' = None) -> 'TenantContext'
Typed errors: TenantContextError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.revived¶
Stability: beta
The counterpart of canonical_json: tagged moments and decimals back as themselves.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.routing.CHEAP¶
Stability: beta
The kind of work, named rather than the model that does it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.routing.KnownTaskClass¶
Stability: beta
Exported value.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.routing.ModelRequirements¶
Stability: beta
What the caller needs of whatever model answers.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.routing.ModelRouter¶
Stability: beta · Kind: Protocol
Resolves a task class and a requirement set to one concrete model.
class ModelRouter(Protocol) {resolve(self, task_class: 'TaskClass', *, requirements: 'ModelRequirements | None' = None, tenant: 'str | None' = None, agent: 'str | None' = None, pinned: 'ModelRef | None' = None) -> 'RoutingDecision'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.routing.REASONING¶
Stability: beta
The kind of work, named rather than the model that does it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.routing.RejectedCandidate¶
Stability: beta
A model the router passed over, and what it could not do.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.routing.RoutingDecision¶
Stability: beta
Which model answered a task class, and why that one.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.routing.SMART¶
Stability: beta
The kind of work, named rather than the model that does it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.routing.TaskClass¶
Stability: beta
The kind of work, named rather than the model that does it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.run.Run¶
Stability: beta
One execution of an agent, from prompt assembly to a terminal state.
class Run(AdkModel, Generic) {record(self, usage: 'Usage') -> 'Self'; record_event(self, event: 'RunEvent') -> 'Self'; transition_to(self, state: 'RunState', *, at: 'float | None' = None) -> 'Self'; with_output(self, output: 'OutputT') -> 'Self'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.run.RunContext¶
Stability: beta
What the runtime threads through every layer of a run.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.run.RunEvent¶
Stability: beta
One thing that happened during a run, in the order it happened.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.run.RunEventKind¶
Stability: beta
What happened. One kind per thing the loop does, so a filter is exact.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.run.RunState¶
Stability: beta
Where a run is, and if it is over, why.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.run.TenantContext¶
Stability: beta
The isolation boundary the work in hand belongs to.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.run.legal_transitions¶
Stability: beta
The states a run in state may move to. Empty for every terminal state.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.schema.INLINE_REFS¶
Stability: beta
No $defs and no $ref — every definition substituted where it is used.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.schema.InlineRefs¶
Stability: beta
No $defs and no $ref — every definition substituted where it is used.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.schema.JSON_SCHEMA¶
Stability: beta
Draft 2020-12 as pydantic emits it, normalised. The default.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.schema.JsonSchema¶
Stability: beta
Draft 2020-12 as pydantic emits it, normalised. The default.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.schema.STRICT_SUBSET¶
Stability: beta
Every object closed, for providers whose structured-output mode demands it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.schema.SchemaDialect¶
Stability: beta · Kind: Protocol
What one provider will accept, as a transformation and a list of refusals.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.schema.StrictSubset¶
Stability: beta
Every object closed, for providers whose structured-output mode demands it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.schema.annotations_of¶
Stability: beta
Resolve a callable's annotations, including those of a callable object's __call__.
Typed errors: NameError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.schema.schema_for¶
Stability: beta
Derive a provider-ready JSON Schema from a type or a callable's signature.
def schema_for(target: 'type | UnionType | Callable[..., Any]', *, dialect: 'SchemaDialect' = JsonSchema(name='json-schema', forbidden=frozenset()), max_bytes: 'int | None' = None, exclude: 'Collection[str]' = ()) -> 'dict[str, Any]'
Typed errors: CapabilityError, SchemaGenerationError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.schema.schema_hash¶
Stability: beta
A stable digest of a schema, for prompt versions and run fingerprints.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.schema_for¶
Stability: beta
Derive a provider-ready JSON Schema from a type or a callable's signature.
def schema_for(target: 'type | UnionType | Callable[..., Any]', *, dialect: 'SchemaDialect' = JsonSchema(name='json-schema', forbidden=frozenset()), max_bytes: 'int | None' = None, exclude: 'Collection[str]' = ()) -> 'dict[str, Any]'
Typed errors: CapabilityError, SchemaGenerationError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.schema_hash¶
Stability: beta
A stable digest of a schema, for prompt versions and run fingerprints.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.screen¶
Stability: beta
Recognise instruction-shaped and tool-call-shaped text in a passage.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.scrub¶
Stability: beta
Return value with each sensitive-looking run replaced by MASK.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.sealed¶
Stability: beta
Return content in a data envelope whose delimiter it cannot forge or close.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.secrets.CachingSecrets¶
Stability: beta
A resolver with a ttl, so a rotated secret is picked up without a restart.
class CachingSecrets(object) {invalidate(self, ref: 'SecretRef') -> 'None'; invalidate_all(self) -> 'None'; resolve(self, ref: 'SecretRef') -> 'SecretStr'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.secrets.ChainedSecrets¶
Stability: beta
Resolvers tried in order, the first that holds the secret answering.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.secrets.EnvironmentSecrets¶
Stability: beta
Resolution from the process environment, which is the local development path.
class EnvironmentSecrets(object) {resolve(self, ref: 'SecretRef') -> 'SecretStr'; variable_for(self, ref: 'SecretRef') -> 'str'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.secrets.ProvidedSecrets¶
Stability: beta
A SecretProvider — the kit's synchronous lookup — read as a SecretResolver.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.secrets.SecretResolver¶
Stability: beta · Kind: Protocol
Where a SecretRef is turned into a value, asked at the point of use.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.secrets.literal_credentials¶
Stability: beta
Fields that look like credentials and hold a literal rather than a reference.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.span_here¶
Stability: beta
The span open right now, or None outside any. What an emitted event parents itself to.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.state.RunRecord¶
Stability: beta
A run as a store holds it: far enough along to be resumed, and no further.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.state.SessionRecord¶
Stability: beta
A conversation across runs, as a store holds it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.state.StateDelta¶
Stability: beta
Amounts to add to a run, never values to set.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.state.StateKey¶
Stability: beta
Whose record, and which one.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.state.StatePage¶
Stability: beta
One page of runs, and where the next one starts.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.state.StateQuery¶
Stability: beta
Which runs to list, for operator tooling and for whatever reaps abandoned work.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.state.StateStore¶
Stability: beta · Kind: Protocol
Where session and run state lives, for agents running in more than one process.
class StateStore(Protocol) {delete_run(self, key: 'StateKey') -> 'None'; delete_session(self, key: 'StateKey', *, cascade: 'bool' = False) -> 'None'; get_run(self, key: 'StateKey') -> 'RunRecord | None'; get_session(self, key: 'StateKey') -> 'SessionRecord | None'; list_runs(self, query: 'StateQuery') -> 'StatePage'; patch_run(self, key: 'StateKey', delta: 'StateDelta') -> 'RunRecord'; put_run(self, record: 'RunRecord') -> 'RunRecord'; put_session(self, record: 'SessionRecord') -> 'SessionRecord'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.streaming.ReasoningDelta¶
Stability: beta
More of the model's own working out.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.streaming.StreamAccumulator¶
Stability: beta
Assembles a ModelResponse from the events of one stream.
class StreamAccumulator(object) {feed(self, event: 'StreamEvent') -> 'None'; finish(self, stop_reason: 'StopReason') -> 'ModelResponse'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.streaming.StreamEnd¶
Stability: beta
The last event, carrying the assembled answer.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.streaming.StreamEvent¶
Stability: beta
Base for every event a provider may emit while an answer is being generated.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.streaming.TextDelta¶
Stability: beta
More of the answer. Concatenating every delta in arrival order gives the content.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.streaming.ToolCallDelta¶
Stability: beta
Part of one tool call. Vendors send the arguments as JSON text, a fragment at a time.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.streaming.UsageDelta¶
Stability: beta
The running total, as the provider reports it. Later events replace earlier ones.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.suspension.ApprovalToken¶
Stability: beta
A bearer secret that resolves to one suspended run and one held action.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.suspension.DEFAULT_SUSPENSION_SECONDS¶
Stability: beta
Convert a string or number to a floating-point number, if possible.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.suspension.PendingDecision¶
Stability: beta
One line of somebody's 'waiting on you', carrying no argument values.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.suspension.SuspendedRun¶
Stability: beta
A run stopped on a question, and everything needed to carry it on.
class SuspendedRun(AdkModel) {expired_by(self, now: 'float') -> 'bool'; held_for(self, now: 'float') -> 'float'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.suspension.SuspensionStore¶
Stability: beta · Kind: Protocol
Where stopped runs wait, keyed by run and reachable by token digest.
class SuspensionStore(Protocol) {attempted(self, attempt: 'TokenAttempt') -> 'None'; by_token(self, token_digest: 'str', *, tenant: 'str') -> 'SuspendedRun | None'; forget(self, run_id: 'str', *, tenant: 'str') -> 'None'; get(self, run_id: 'str', *, tenant: 'str') -> 'SuspendedRun | None'; pending(self, *, tenant: 'str') -> 'tuple[SuspendedRun, ...]'; put(self, suspended: 'SuspendedRun') -> 'None'; spend(self, run_id: 'str', *, tenant: 'str') -> 'bool'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.suspension.TokenAttempt¶
Stability: beta
Somebody presenting a token, and what came of it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.suspension.TokenRedeemer¶
Stability: beta · Kind: Protocol
A gate that can turn a token back into the run it stopped.
class TokenRedeemer(Protocol) {redeem(self, token: 'str', *, tenant: 'str', presented_by: 'str') -> 'SuspendedRun'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.suspension.digest_of_token¶
Stability: beta
Return the SHA-256 of a token value, which is what a store may keep.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.suspension.mint_token¶
Stability: beta
Issue a token for record, good for ttl_seconds from issued_at.
def mint_token(record: 'ApprovalRecord', *, issued_at: 'float' = 0.0, ttl_seconds: 'float' = 259200.0) -> 'ApprovalToken'
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.telemetry_dump¶
Stability: beta
Dump model for a span, a metric or a log line, without its sensitive fields.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.tenancy.TenantContext¶
Stability: beta
The isolation boundary the work in hand belongs to.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.tenancy.bound¶
Stability: beta
Wrap call so it runs under the context bound now, wherever it runs later.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.tenancy.current_tenant¶
Stability: beta
The context bound here, or a refusal.
Typed errors: MissingTenantContextError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.tenancy.tenant_here¶
Stability: beta
The context bound here, or None outside one.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.tenancy.tenant_scope¶
Stability: beta
Bind a tenant for the duration of the block, restoring what was there before.
def tenant_scope(what: 'TenantContext | str', *, user: 'str | None' = None, crossing: 'str | None' = None) -> 'Iterator[TenantContext]'
Typed errors: TenantCrossingError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.tenant_config.CachingTenantConfig¶
Stability: beta
A provider in front of a provider, so a limit lookup is not a round trip per run.
class CachingTenantConfig(object) {config_for(self, tenant: 'str') -> 'TenantConfig'; invalidate(self, tenant: 'str') -> 'None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.tenant_config.FileTenantConfig¶
Stability: beta
Tenant configuration as one TOML file per tenant in a directory.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.tenant_config.SecretRef¶
Stability: beta
The name of a secret, never the secret.
class SecretRef(AdkModel) {describe(self) -> 'str'; for_tenant(self, tenant: 'str') -> 'Self'; resolve(self, secrets: 'SecretProvider') -> 'str'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.tenant_config.TenantConfig¶
Stability: beta
One tenant's entitlement, as it is stored and as it arrives.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.tenant_config.TenantConfigProvider¶
Stability: beta · Kind: Protocol
Where tenant configuration is read from.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.tenant_config.TenantLimits¶
Stability: beta
What one tenant may spend, reach and keep.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.tenant_config.TenantPolicy¶
Stability: beta
The resolved entitlement, bound for the work it applies to.
class TenantPolicy(AdkModel) {budget_scope(self) -> 'ScopedLimits | None'; check_model(self, model: 'str') -> 'None'; check_region(self, region: 'str') -> 'None'; check_tool(self, name: 'str') -> 'None'; model_for(self, task_class: 'str') -> 'str | None'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.tenant_config.current_policy¶
Stability: beta
The policy bound here, or a refusal.
Typed errors: ConfigurationError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.tenant_config.policy_here¶
Stability: beta
The policy bound here, or None outside one.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.tenant_config.resolve_tenant_policy¶
Stability: beta
The policy for the tenant bound here.
Typed errors: MissingTenantContextError, TenantUnconfiguredError, UnknownTenantError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.tenant_config.tenant_policy¶
Stability: beta
Bind a resolved policy for the duration of the block.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.tenant_here¶
Stability: beta
The context bound here, or None outside one.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.tenant_policy¶
Stability: beta
Bind a resolved policy for the duration of the block.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.tenant_scope¶
Stability: beta
Bind a tenant for the duration of the block, restoring what was there before.
def tenant_scope(what: 'TenantContext | str', *, user: 'str | None' = None, crossing: 'str | None' = None) -> 'Iterator[TenantContext]'
Typed errors: TenantCrossingError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.tool_access.DenyReason¶
Stability: beta
Which layer refused. An operator fixes the setting they own, not the one below it.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.tool_access.ToolAllowlist¶
Stability: beta
The tools a run may call, resolved once and immutable for its lifetime.
class ToolAllowlist(object) {check(self, name: 'str') -> 'None'; decide(self, name: 'str') -> 'ToolDecision'; narrowed(self, declared: 'Iterable[str]', *, agent: 'str' = '') -> 'Self'; permits(self, name: 'str') -> 'bool'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.tool_access.ToolDecision¶
Stability: beta
One dispatch decision, as it is recorded.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.tool_access.canonical¶
Stability: beta
The key a tool name is compared under.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.trust.AXES¶
Stability: beta
Built-in immutable sequence.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.trust.TrustBoundary¶
Stability: beta
Where a model sits, on the axes a fallback may not cross.
class TrustBoundary(AdkModel) {admits(self, other: 'TrustBoundary') -> 'bool'; differs_from(self, other: 'TrustBoundary') -> 'tuple[str, ...]'}
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.unpacked¶
Stability: beta
A record back from what a store held, migrated on the way.
def unpacked(text: 'str', model: 'type[ModelT]', *, kind: 'str', registry: 'StateRegistry | None' = None) -> 'ModelT'
Typed errors: StateMigrationError, UnsupportedStateVersionError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.validated¶
Stability: beta
Validate payload as model, or raise naming every field that failed.
Typed errors: SchemaViolationError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.verify_conformance¶
Stability: beta
Raise unless obj provides every member protocol requires.
Typed errors: ProtocolConformanceError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.weaker_source¶
Stability: beta
The less trustworthy of two counting sources.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.weakest¶
Stability: beta
The lowest trust among everything that went into a piece of content.
Typed errors: None declared.
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.
tesserix_adk.core.wrap_untrusted¶
Stability: beta
Return content marked as data the model must not take instruction from.
Typed errors: ValueError
Runnable recipe: examples/typed_primitives.py — boundary values are typed and closed.