Expand description
Unified facade over the Fiddlesticks workspace crates.
This crate is designed to be the single dependency for most applications. It exposes a curated, facade-owned API surface with stable namespace modules, runtime/provider helpers, and macros for common setup and request-building flows.
use fiddlesticks::prelude::*;
let session = fs_session!("session-1", openai, "gpt-4o-mini", "Be concise.");
let request = turn(session, "Summarize this change.");
let messages = fs_messages![
system => "You are direct.",
user => request.user_input,
];
assert_eq!(messages.len(), 2);Re-exports§
pub use runtime::RuntimeBundle;pub use runtime::build_runtime;pub use runtime::build_runtime_with;pub use runtime::build_runtime_with_memory;pub use runtime::build_runtime_with_tooling;pub use runtime::chat_service;pub use runtime::chat_service_with_memory;pub use runtime::in_memory_backend;pub use util::assistant_message;pub use util::parse_provider_id;pub use util::session;pub use util::streaming_turn;pub use util::system_message;pub use util::tool_message;pub use util::turn;pub use util::user_message;
Modules§
- chat
- harness
- memory
- prelude
- Common imports for most Fiddlesticks applications.
- provider
- runtime
- Runtime wiring helpers for chat and harness usage.
- tooling
- util
- Small convenience constructors for common types.
Macros§
- fs_
messages - Creates a
Vec<Message>from role/content pairs. - fs_msg
- Creates a single chat
Messagefrom a role shorthand. - fs_
session - Creates a
ChatSessionwith provider shorthand support.
Structs§
- Accept
AllValidator - Agent
Harness Builder - Bootstrap
State - Browser
Login Session - Chat
Error - Chat
Policy - Chat
Service - Chat
Service Builder - Chat
Session - Chat
Turn Request - Chat
Turn Request Builder - Chat
Turn Result - Credential
Access Event - Credential
Metadata - Default
Tool Runtime - Fail
Fast Policy - Feature
Record - First
Pending Feature Selector - Function
Tool - Harness
- Harness
Builder - Runtime builder that composes provider/chat/tooling dependencies into a
Harness. - Harness
Error - InMemory
Conversation Store - InMemory
Memory Backend - Init
Command - Init
Plan - Init
Shell Script - Initializer
Request - Initializer
Result - Memory
Conversation Store - Memory
Error - Message
- Model
Request - Model
Request Builder - Model
Response - Noop
Health Checker - Noop
Operation Hooks - Noop
Tool Runtime Hooks - Progress
Entry - Provider
Build Config - Provider
Error - Provider
Registry - Retry
Policy - RunCheckpoint
- RunPolicy
- Runtime
RunRequest - Secret
String - Secure
Credential Manager - Session
Id - Session
Manifest - Sqlite
Memory Backend - Task
Iteration Request - Task
Iteration Result - Token
Usage - Tool
Call - Tool
Definition - Tool
Error - Tool
Execution Context - Tool
Execution Result - Tool
Registry - Tool
Result - TraceId
- VecEvent
Stream
Enums§
- Chat
Error Kind - Chat
Error Phase - Chat
Error Source - Chat
Event - Credential
Access Action - Credential
Kind - Harness
Error Kind - Harness
Phase - Init
Shell - Init
Step - Memory
Backend Config - Memory
Error Kind - Output
Item - Provider
Credential - Provider
Error Kind - Provider
Id - Role
- RunPolicy
Mode - RunStatus
- Runtime
RunOutcome - Stop
Reason - Stream
Event - Tool
Error Kind
Traits§
- Conversation
Store - Credential
Access Observer - Feature
Selector - Health
Checker - Memory
Backend - Model
Event Stream - Provider stream contract.
- Model
Provider - Outcome
Validator - Provider
Operation Hooks - Tool
- Tool
Runtime - Tool
Runtime Hooks
Functions§
- build_
provider_ from_ api_ key - build_
provider_ with_ config - Builds a provider from a strict
ProviderBuildConfig. - create_
default_ memory_ backend - create_
memory_ backend - execute_
with_ retry - list_
models_ with_ api_ key - parse_
json_ object - parse_
json_ value - required_
string