Skip to main content

Crate wesichain_core

Crate wesichain_core 

Source

Re-exports§

pub use approval::ApprovalChannel;
pub use approval::ApprovalDecision;
pub use approval::ApprovalDefault;
pub use approval::ApprovalRequest;
pub use persistence::load_runnable;
pub use persistence::reconstruct;
pub use persistence::save_runnable;
pub use registry::RunnableRegistry;
pub use runnable::Runnable;
pub use runnable::StreamEvent;
pub use serde::SerializableRunnable;

Modules§

approval
Approval types for human-in-the-loop (HITL) gates.
capability
Model capability registry.
checkpoint
persistence
prelude
registry
runnable
serde
state
token_budget
Token budget cap for LLM context windows.

Structs§

CallbackManager
CancellationToken
A token which can be used to signal a cancellation request to one or more tasks.
Chain
Document
JsonOutputParser
A parser that parses a JSON string (or LlmResponse content) into a structured type or Value.
LlmInput
LLM call parameters captured at start time.
LlmRequest
LlmResponse
LlmResult
LLM call results captured at end time.
Message
OutputFixingParser
A parser/chain that wraps an LLM and a base parser. It attempts to invoke the LLM and parse the result. If parsing fails, it feeds the error back to the LLM to generate a fix.
RateLimited
Retrying
RunConfig
RunContext
RunnableBinding
A Runnable that has arguments bound to it.
RunnableParallel
RunnableWithFallbacks
RuntimeChain
A runtime-constructed chain that operates on Value. This is used for deserialization where types are not known at compile time.
SearchResult
StrOutputParser
A parser that converts LlmResponse or String into a String. If input is LlmResponse, it extracts the content.
StructuredOutputParser
A parser that extracts structured output from LlmResponse. It prioritizes tool_calls (first call args), then falls back to parsing content as JSON.
TimeLimited
TokenUsage
Token consumption for cost tracking and optimization.
ToolCall
ToolContext
ToolSpec
TracedRunnable

Enums§

AgentEvent
ContentPart
EmbeddingError
MessageContent
MetadataFilter
ReActStep
Role
RunType
StoreError
ToolError
WesichainError

Traits§

BaseOutputParser
Trait for output parsers that can transform input into a specific output. This is a specialized version of Runnable for parsing logic.
Bindable
A trait for input types that can have arguments bound to them.
CallbackHandler
Embedding
HasFinalOutput
HasMetadataFilter
HasQuery
HasRetrievedDocs
HasUserInput
IntoValue
Converts a value into Value, falling back to Value::Null on serialization errors (v0 behavior).
RunnableExt
ScratchpadState
ToTraceInput
ToTraceOutput
Tool
ToolCallingLlm
ToolCallingLlmExt
TryFromValue
TypedTool
VectorStore

Functions§

delete_ref_dyn
delete_strs_dyn
embed_batch_ref_dyn
embed_batch_strs_dyn
ensure_object

Type Aliases§

Value