Skip to main content

reka/
lib.rs

1#![doc = include_str!("../README.md")]
2
3/// Chat completions, streaming, and shared chat types.
4pub mod chat;
5/// Research requests built on the chat completions API.
6pub mod research;
7/// Vision APIs including health checks and video operations.
8pub mod vision;
9
10mod client;
11mod config;
12mod error;
13mod models;
14mod transport;
15
16/// Chat API request and response types.
17pub use chat::{
18    ChatChoice, ChatClient, ChatDelta, ChatMessage, ChatResponseMessage, ChatStream,
19    ChatStreamChoice, ChatStreamEvent, ChatTool, ContentPart, CreateChatCompletionArgs,
20    CreateChatCompletionResponse, FunctionDefinition, MediaSource, MessageContent, TokenUsage,
21    ToolCall, ToolCallDelta, ToolCallDeltaFunction, ToolCallFunction,
22};
23/// Top-level client used to access the Reka API.
24pub use client::Client;
25/// Client configuration and configuration builder.
26pub use config::{ClientConfig, ClientConfigBuilder};
27/// Error and result types returned by this crate.
28pub use error::{ApiErrorResponse, ConfigError, DecodeError, HttpStatusError, RekaError, Result};
29/// Models API and model identifiers.
30pub use models::{Model, ModelId, ModelsClient};
31/// Research request types and helpers.
32pub use research::{
33    CreateResearchArgs, ParallelThinkingOptions, ResearchClient, ResearchOptions, UserLocation,
34    WebSearchOptions,
35};
36/// Vision APIs and typed argument objects.
37pub use vision::{
38    DeleteVideoArgs, DeleteVideoResponse, GetVideoArgs, ListVideosArgs, Video, VideoId,
39    VideoMetadata, VisionClient, VisionHealth, VisionVideosClient,
40};