Skip to main content

runtara_ai/
lib.rs

1// Copyright (C) 2025 SyncMyOrders Sp. z o.o.
2// SPDX-License-Identifier: AGPL-3.0-or-later
3//! AI/LLM integration for runtara workflows.
4//!
5//! This crate provides a synchronous completion abstraction:
6//! - `CompletionModel` trait and request builder
7//! - Message types (user, assistant, tool calls, tool results)
8//! - `OneOrMany<T>` non-empty collection
9//! - Provider implementations (OpenAI-compatible)
10//! - Provider dispatch (connection → CompletionModel)
11//! - Shared types for conversation history, tool call logs, and usage tracking
12
13pub mod completion;
14pub mod message;
15pub mod one_or_many;
16pub mod provider;
17pub mod providers;
18pub mod types;
19
20// Re-export key types at crate root for convenience.
21pub use completion::{CompletionError, CompletionModel, CompletionRequest, CompletionResponse};
22pub use message::{AssistantContent, Message, UserContent};
23pub use one_or_many::OneOrMany;