Skip to main content

Crate distri

Crate distri 

Source

Re-exports§

pub use config::BuildHttpClient;
pub use distri_types as types;

Modules§

config
Configuration for the Distri client.

Structs§

AgentRegistrationResponse
Minimal response from agent registration - ignores extra fields like cloud-only id
AgentStreamClient
ApiKeyResponse
Response from API key creation
ArtifactEntry
An artifact entry in a listing.
ArtifactListResponse
Response from listing artifacts in a namespace.
ArtifactNamespace
An artifact namespace (e.g., a task’s artifact space).
ArtifactNamespaceList
Response listing all artifact namespaces.
ArtifactReadResponse
Response from reading an artifact.
ArtifactSaveResponse
Response from saving an artifact.
CreatePluginRequest
Request to create a new plugin.
CreateSkillRequest
Request to create a new skill.
CreateSkillScriptRequest
Request to create a script within a skill.
Distri
Simple HTTP/SSE client for invoking agents with Distri messages.
DistriClientApp
DistriConfig
Configuration for the Distri client.
EventPrinter
ExternalToolRegistry
Per-context registry for handling external tools locally instead of waiting for remote completion.
HookContext
HookMutation
HookRegistry
A per-execution hook registry that lives alongside an ExecutorContext. Hooks are fire-and-forget - they execute but don’t return values.
InlineHookRequest
InlineHookResponse
InvokeOptions
Options for customizing agent invocations with dynamic template data.
LlmExecuteOptions
Options for LLM execution
LlmExecuteResponse
LoginUrlResponse
Response from get_login_url - returns the web app login URL
NewPromptTemplateRequest
Request to create/update a prompt template.
PluginResponse
Full plugin information including code - returned from get/create/update.
PluginsListResponse
Wrapped response for plugin lists.
PromptTemplateResponse
Response from prompt template API.
SkillListItemResponse
Lighter skill information without content - returned from list endpoints.
SkillResponse
Full skill information including content and scripts.
StreamItem
Incoming item from the agent stream. Carries the raw A2A message kind and the reconstructed AgentEvent (if the metadata could be parsed).
SyncPromptTemplatesResponse
Response from syncing prompt templates.
TaskNamespaceResponse
Response from getting a task’s namespace.
TokenResponse
Response for issuing access + refresh tokens.
ToolListItem
UpdatePluginRequest
Request to update an existing plugin.
UpdateSkillRequest
Request to update an existing skill.
ValidatePluginResponse
Response from plugin validation.
WorkspaceResponse
Workspace information

Enums§

AppError
ClientError
HookKind
StreamError

Functions§

print_stream
Convenience helper that streams an agent and prints events to stdout.
print_stream_verbose
Convenience helper that streams an agent and prints events to stdout, with optional verbose tool output.
register_local_filesystem_tools
Register local filesystem and artifact tools for an agent, returning their definitions for UI/listing.

Type Aliases§

Handler
HandlerFuture