Skip to main content

Crate systemprompt_agent

Crate systemprompt_agent 

Source
Expand description

§systemprompt-agent

Agent-to-Agent (A2A) protocol implementation for systemprompt.io.

This crate hosts the domain logic for hosting governed AI agents:

  • JSON-RPC protocol models in models::a2a
  • Persistence in repository (tasks, contexts, artifacts, execution steps)
  • Runtime services in services (HTTP server, orchestration, MCP bridging, skills ingestion, streaming, registry)
  • A typed error hierarchy rooted at AgentError

§Feature flags

This crate currently has no Cargo features beyond defaults. Functionality is unconditional and the crate compiles a single configuration. The facade crate systemprompt gates inclusion via the agent/full features.

§Layer

Domain layer. Depends only on shared/* and infra/* crates plus a small number of sibling domain crates (declared in Cargo.toml).

Re-exports§

pub use models::a2a::A2aJsonRpcRequest;
pub use models::a2a::A2aRequestParams;
pub use models::a2a::A2aResponse;
pub use models::a2a::MessageSendParams;
pub use models::a2a::TaskIdParams;
pub use models::a2a::TaskQueryParams;
pub use services::AgentEvent;
pub use services::AgentEventBus;
pub use services::AgentHandlerState;
pub use services::AgentOrchestrator;
pub use services::AgentServer;
pub use services::AgentStatus;
pub use services::ContextService;
pub use services::SkillService;
pub use repository::content::ArtifactRepository;

Modules§

models
Domain models for the agent crate.
repository
Repository layer for the agent crate.
services
Service layer for the agent crate.

Structs§

AgentCapabilities
AgentCard
AgentExtension
AgentInterface
AgentProvider
AgentSkill
AgentState
Artifact
DataPart
Message
Task
TaskStatus
TextPart

Enums§

AgentError
ArtifactError
ContextError
Part
ProtocolError
RowParseError
SecurityScheme
TaskError
TaskState

Constants§

A2A_PROTOCOL_VERSION

Type Aliases§

AgentResult
TransportProtocol