Skip to main content

Crate agent_works

Crate agent_works 

Source

Structs§

AbortOnFailure
Always aborts on failure.
AgentBuilder
AgentConfig
AgentRuntime
AgentSession
AllowAllApprovalHandler
AlternativeAction
AlwaysContinue
Always continues.
AnthropicClient
ApprovalRequest
AutoContinueTool
Pure orchestration signal tool with zero domain dependency.
CheckpointData
ContextWindowManager
DenyAllApprovalHandler
ExecutionPlan
InMemoryPlanStore
InMemorySessionStore
LlmCapabilities
LlmClientBuilder
Message
OpenAiClient
PlanExecTool
PlanExecTool is a domain-agnostic tool for executing previously created plans.
PlanOrchestrator
PlanOrchestrator is a domain-agnostic tool for creating execution plans. It delegates plan generation to a PlanGenerator implementation and stores the plan via a PlanStore.
PlanStep
PlanStoreData
PostLlmCtx
PreLlmCtx
ReasoningConfig
Reasoning/thinking configuration, unifying reasoning/thinking parameters across vendors.
ReflectionResult
ReflexionContext
RetryConfig
RetryOnError
Continue on tool failure, feeding the error back to the model
SessionId
StepHistoryEntry
StepResult
StopOnError
Default strategy: stop on tool failure.
StreamingJsonParser
Parses JSON objects of type T from a stream of text chunks.
SubAgentTool
ToolCallMessage
ToolContext
ToolEnforcementConfig
ToolEnforcementMiddleware
ToolOutput
ToolRegistry
ToolResultData
UsageInfo
UserMessageCtx

Enums§

AgentError
AgentEvent
ApprovalDecision
ChatMessage
CheckpointStep
ImageAttachment
ImageDetail
Language
LlmProvider
MessageRole
PlanStatus
ReasoningEffort
Reasoning intensity/depth enumeration.
RecoveryAction
ResponseFormat
RiskLevel
RunOutcome
The final outcome of an Agent run
StepStatus
StreamChunk
SubAgentSessionPolicy
Sub-Agent session policy
ToolControlFlow
ToolErrorAction
Action taken by the runtime after a tool execution failure

Traits§

ApprovalHandler
LlmClient
Middleware
PlanGenerator
Generates an ExecutionPlan from a high-level objective.
PlanStore
RecoveryStrategy
Decides what to do when a step fails.
ReflexionHandler
SessionStore
Session Persistence Adapter
StepContinuePolicy
Decides whether the plan should continue executing a given step.
StepExecutor
Executes a single PlanStep and returns its result.
Tool
ToolErrorRecovery
Recovery strategy after a tool execution failure
ToolPolicy
TypedTool

Type Aliases§

AgentResult