Skip to main content

Crate cedar_agent_schemas

Crate cedar_agent_schemas 

Source
Expand description

Canonical Cedar agent action verbs with typed helpers.

Rust equivalents of the TypeScript and Python builders in the sibling packages. The underlying schema file lives at schemas/agent-actions.cedarschema.json in the repository root.

These helpers produce Cedar authorization request values that any Cedar evaluator (cedar-policy, cedar-wasm, or a remote evaluator) can consume. This crate does not itself evaluate policies; it is a typed-builder layer on top of the canonical schema.

Structs§

AgentEndpoint
Canonical Agent::Endpoint attributes.
AgentExecutable
Canonical Agent::Executable attributes.
AgentFile
Canonical Agent::File attributes.
AgentPrincipal
Canonical Agent::Principal attributes.
AgentTool
Canonical Agent::Tool attributes.
CedarAuthorizationRequest
Canonical Cedar authorization request shape.
ConnectContext
Context for Agent::Action::"connect" requests.
ExecContext
Context for Agent::Action::"exec" requests.
OpenContext
Context for Agent::Action::"open" requests.
RequestToolContext
Context for Agent::Action::"request_tool" requests.

Enums§

ActionVerb
The four canonical AI-agent action verbs.

Constants§

SCHEMA_NAMESPACE
The canonical schema namespace for agent action verbs.

Functions§

action_uid
Build a fully-qualified Cedar action UID string.
build_connect_request
Build a Cedar authorization request for a connect action.
build_exec_request
Build a Cedar authorization request for an exec action.
build_open_request
Build a Cedar authorization request for an open action.
build_request_tool_request
Build a Cedar authorization request for a request_tool action.
entity_uid
Build a fully-qualified Cedar entity UID string.