Skip to main content

Crate swiftide_core

Crate swiftide_core 

Source
Expand description

Core traits, types and pipeline plumbing shared by all Swiftide crates.

Most users should depend on the swiftide facade crate, which re-exports this crate’s public API under swiftide::traits, swiftide::chat_completion, swiftide::prompt, swiftide::indexing and swiftide::query. Depend on swiftide-core directly when building your own integration and you only need the contracts.

What lives here:

Guides: indexing, querying, models and agents.

Re-exports§

pub use crate::agent_traits::AgentContext;
pub use crate::agent_traits::MessageHistory;
pub use crate::agent_traits::ToolFeedback;
pub use type_aliases::*;
pub use crate::chat_completion::traits::*;
pub use crate::command_output::*;
pub use crate::indexing_traits::*;
pub use crate::query_traits::*;
pub use crate::token_estimation::*;
pub use crate::tool_executor::*;
pub use crate::indexing_decorators::*;

Modules§

agent_traits
chat_completion
This module enables the implementation of chat completion on LLM providers
command_output
Command output that retains stdout and stderr identity in observed order.
document
Documents are the main data structure that is retrieved via the query pipeline
indexing
indexing_decorators
indexing_traits
Traits in Swiftide allow for easy extendability
metricsmetrics
prelude
Re-export of commonly used dependencies.
prompt
Prompts templating and management
query_traits
querying
statistics
Pipeline statistics collection for monitoring and observability Pipeline statistics collection
test_utilstest-utils
token_estimation
tool_executor
type_aliases
util
Utility functions for Swiftide

Macros§

assert_default_prompt_snapshottest-utils