Skip to main content

Crate agent_model_contract

Crate agent_model_contract 

Source
Expand description

Transport-neutral domain contract for Model Infra.

Structs§

AgentModelConfig
BuiltinModelConfig
CanonicalMessage
CanonicalModelRequest
CanonicalModelResponse
CreateModelProfileRequest
CreatePlatformAdminUserRequest
InvocationId
ListModelProfilesRequest
ListModelProfilesResponse
ModelActor
ModelCapabilities
ModelConfigId
ModelConnectionConfig
Provider connection shared by platform and Agent-owned model configuration. Credentials are deliberately excluded and are accepted only on write requests.
ModelError
ModelInvocation
ModelPolicy
ModelProfile
ModelProfileId
ModelUsageLedgerEntry
ModelUsageSummary
PlatformAdminUser
PlatformAdminUserPage
ProfileCommandRequest
ProviderEndpoint
SecretRef
TokenUsage
TokenUsageCoverage
Number of invocations that actually reported each counter; denominator is invocation_count.
ToolDefinition
UpdateModelProfileRequest
UpdatePlatformAdminUserRequest
UpsertAgentModelConfigRequest
UpsertBuiltinModelConfigRequest
WriteOnlyApiKey

Enums§

CanonicalContent
CanonicalModelEvent
CanonicalRole
InvocationChannel
InvocationState
Modality
ModelApiFamily
ModelCredentialSource
ModelErrorKind
ModelProfileStatus
ProviderKind

Constants§

AUDIENCE
DEFAULT_PORT
PLATFORM_ADMIN_ROLE
SERVICE_NAME

Functions§

capability
parse_admin_username
validate_identifier

Type Aliases§

ModelResult