Skip to main content

Crate distri_types

Crate distri_types 

Source

Re-exports§

pub use configuration::DistriServerConfig;
pub use configuration::AgentConfig;
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::*;

Modules§

a2a
a2a_converters
auth
browser
configuration
context
events
filesystem
integration
prompt
skill
stores
tenant_context
todos
tool
ui_tool_render
ui_tool_renderers

Structs§

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
ContextSize
ContextUsage
CreateThreadRequest
DistriConfig
Configuration for the Distri client.
ExecutionHistoryEntry
Enriched execution history entry that includes context metadata
ExecutionResult
Execution result with detailed information
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
StandardDefinition
Agent definition - complete configuration for an agent
Task
TaskEvent
Thread
ThreadSummary
TokenUsage
Token usage breakdown from an LLM call.
ToolCall
ToolDefinition
ToolResponse
ToolsConfig
Tools configuration for agents
UpdateThreadRequest
UserMessageOverrides

Enums§

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
FileSystemMode
Where filesystem and artifact tools should execute
FileType
HookKind
McpServerType
MemoryKind
MessageRole
ModelProvider
Part
PartDefinition
ReasoningDepth
Depth of reasoning for planning
ReflectionDepth
Depth of reflection
ReflectionTrigger
When to trigger reflection
ReplanningTrigger
When to trigger replanning
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
ToolResultWithSkip
TransportType

Constants§

DEFAULT_EXTERNAL_TOOL_TIMEOUT_SECS
Default timeout for external tool execution in seconds

Traits§

OrchestratorTrait
Trait for workflow runtime functions (session storage, agent calls, etc.)
ServerTrait

Functions§

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 JavaScript identifiers (no hyphens)

Type Aliases§

BuilderFn
PartsMetadata
Mapping of part indices to their metadata. Used in message metadata to specify per-part behavior.