Skip to main content Crate distri_types Copy item path Source pub use configuration::AgentConfig ;pub use tool_result_store::CacheCheck ;pub use tool_result_store::ContentFormat ;pub use tool_result_store::ContentReplacementState ;pub use tool_result_store::FILE_UNCHANGED_STUB ;pub use tool_result_store::FileReadCache ;pub use tool_result_store::MAX_TOOL_RESULT_CHARS ;pub use tool_result_store::MAX_TOOL_RESULTS_PER_MESSAGE_CHARS ;pub use tool_result_store::PERSIST_THRESHOLD_BYTES ;pub use tool_result_store::PREVIEW_SIZE_BYTES ;pub use tool_result_store::PersistedToolResult ;pub use tool_result_store::Preview ;pub use tool_result_store::ReplacementDecision ;pub use auth ::*;pub use events ::*;pub use tenant_context ::*;pub use tool ::*;pub use integration ::*;pub use filesystem ::*;pub use skill ::*;pub use todos ::*;pub use ui_tool_render ::*;pub use ui_tool_renderers ::*;pub use models ::*;a2a a2a_converters auth browser channels Shared channel + bot types. Consumed by distri-cloud (server, stores,
handlers) and distri-gateway (webhook adapters) so the two halves speak
the same vocabulary. configuration connections context dynamic_tool events filesystem http_request Typed request/response structs for the HTTP request proxy. integration models Core model, provider, and audio types used across the entire system. prompt resolve skill stores tenant_context thinking Branded thinking/loading phrases shared between CLI and UI. todos tool tool_result_store Two-level tool result persistence and file read caching. ui_tool_render ui_tool_renderers AdditionalAttributes Additional attributes for thread/task metadata. AdditionalParts Structure for managing additional user message parts
This allows control over how parts are added and whether artifacts should be expanded AgentContextSize AgentPlan AgentStrategy Unified Agent Strategy Configuration AvailableSkill A reference to a stored skill that an agent can load on demand CompactionSummary Summary produced by semantic compaction of older scratchpad entries ContextBudget Tracks token usage by component for context optimization. ContextSize ContextUsage CreateThreadRequest DistriConfig Configuration for the Distri client. ExecutionHistoryEntry Enriched execution history entry that includes context metadata ExecutionResult Execution result with detailed information ExecutorContextMetadata Metadata sent by clients (CLI, browser SDK, etc.) alongside A2A messages.
Deserialized by the server to configure execution context.
This is the canonical schema — all clients should serialize this struct. ExternalTool External tool that delegates execution to the frontend HookContext HookMutation InlineHookRequest InlineHookResponse LLmContext LlmDefinition McpDefinition McpServerMetadata McpSession McpToolConfig Configuration for tools from an MCP server Message MockOrchestrator ModelInfo A model entry within a provider ModelSettings Model settings configuration.
A ModelSettings always has a valid model string.
Use Option<ModelSettings> when no model is configured yet. ModelSettingsInner Optional/defaultable model parameters. Split from ModelSettings so callers
can construct ModelSettings { model: "...", ..Default::default() } easily
via the inner field having Default. OrchestratorRef Reference wrapper for orchestrator that allows late binding PartMetadata Metadata for individual message parts.
Used to control part behavior such as persistence. PlanConfig Configuration for planning operations PlanStep Plan step for execution ProviderModels Models grouped by provider, with configuration status ProviderModelsStatus Provider models with configuration status (returned by API) ProviderSecretDefinition Defines the secret requirements for a provider ReflectionConfig Reflection configuration ReplanningConfig Replanning configuration ScratchpadEntry Entry for scratchpad formatting SecretKeyDefinition Defines a single secret key requirement ServerMetadataWrapper SkillContextEntry Skill content re-injected after compaction to preserve agent instructions StandardDefinition Agent definition - complete configuration for an agent Task TaskEvent Thread ThreadSummary TokenUsage Token usage breakdown from an LLM call. ToolCall ToolDefinition ToolResponse ToolsConfig UpdateThreadRequest UserMessageOverrides Action Action can be either a tool call or an LLM call AdditionalPartsInstruction Instruction for how to handle additional parts AgentError CodeLanguage ExecutionKind ExecutionMode Execution mode - tools vs code ExecutionStatus ExecutionType Execution strategy types FileType HookKind McpServerType MemoryKind MessageRole ModelProvider OpenAiApiFormat Which OpenAI-family API format to use when talking to the LLM. Part PartDefinition ReasoningDepth Depth of reasoning for planning ReflectionDepth Depth of reflection ReflectionTrigger When to trigger reflection ReplanningTrigger When to trigger replanning ResolvedOpenAiApiFormat Resolved (non-Auto) API format RuntimeMode Runtime environment in which the agent is executing.
Determines which built-in agent variants and tools are available. ScratchpadEntryType Type of scratchpad entry - only for Thought/Action/Observation tracking TaskMessage TaskStatus ToolCallFormat Supported tool call formats ToolCallStatus ToolDeliveryMode How tools are delivered to the LLM in the prompt. ToolResultWithSkip TransportType CORE_TOOLS Tools that always get full schemas, never deferred.
These are the most commonly used tools that agents need immediately. DEFAULT_DEFERRED_THRESHOLD Default threshold: defer tools when total count exceeds this. DEFAULT_EXTERNAL_TOOL_TIMEOUT_SECS Default timeout for external tool execution in seconds VALID_BUILTIN_TOOLS Tools configuration for agents
Canonical list of valid builtin tool names. OrchestratorTrait Trait for workflow runtime functions (session storage, agent calls, etc.) ServerTrait default_agent_version default_transport_type from_tool_results parse_agent_markdown_content validate_parameters validate_plugin_name Validate plugin name follows naming conventions
Plugin names must be valid identifiers. At most one ‘/’ is allowed for workspace namespacing (e.g. ‘workspace/agent’). BuilderFn PartsMetadata Mapping of part indices to their metadata.
Used in message metadata to specify per-part behavior.