Skip to main content

Crate cnctd_ai

Crate cnctd_ai 

Source

Re-exports§

pub use client::Client;
pub use client::ClientOptions;
pub use client::AnthropicConfig;
pub use client::OpenAiConfig;
pub use client::GeminiConfig;
pub use error::Error;
pub use error::Result;
pub use message::Message;
pub use message::Role;
pub use message::ToolResult;
pub use message::ImageContent;
pub use message::ContentPart;
pub use message::DocumentContent;
pub use message::CacheControl;
pub use request::CompletionRequest;
pub use request::RequestOptions;
pub use request::BuiltInTool;
pub use request::LatLng;
pub use request::RetrievalConfig;
pub use request::ToolConfig;
pub use request::ThinkingLevel;
pub use request::MediaResolution;
pub use request::CitationConfig;
pub use request::McpServerConfig;
pub use request::McpApprovalMode;
pub use tool::ToolUse;
pub use response::CompletionResponse;
pub use response::Usage;
pub use response::FinishReason;
pub use response::GroundingMetadata;
pub use response::GroundingChunk;
pub use response::GroundingSupport;
pub use response::WebChunk;
pub use response::SearchEntryPoint;
pub use response::CodeExecutionResult;
pub use response::CodeExecutionOutcome;
pub use response::Citation;
pub use stream::CompletionStream;
pub use stream::StreamChunk;
pub use tool_helpers::create_tool;
pub use tool_helpers::create_tool_borrowed;
pub use mcp::McpClient;
pub use mcp::GatewayConfig;
pub use mcp::StdioConfig;
pub use mcp::ServerInfo;
pub use mcp::tool_result_to_string;
pub use agent::Agent;
pub use agent::AgentConfig;
pub use agent::AgentConfigBuilder;
pub use agent::AgentTrace;
pub use agent::TraceEvent;
pub use agent::ToolExecution;
pub use agent::AgentState;
pub use agent::StopReason;
pub use batch::BatchItem;
pub use batch::BatchInfo;
pub use batch::BatchStatus;
pub use batch::BatchCounts;
pub use batch::BatchResult;
pub use batch::BatchResultType;
pub use batch::BatchItemError;
pub use batch::BatchAwaitOptions;
pub use embeddings::EmbeddingRequest;
pub use embeddings::EmbeddingInput;
pub use embeddings::EmbeddingResponse;
pub use embeddings::Embedding;
pub use embeddings::EmbeddingUsage;
pub use embeddings::embed_small;
pub use embeddings::embed_large;
pub use transcription::TranscriptionRequest;
pub use transcription::TranscriptionResponse;
pub use transcription::TranscriptSegment;
pub use transcription::AudioInput;
pub use transcription::Speaker;
pub use video::VideoInput;
pub use video::VideoContent;
pub use video::VideoAnalysisRequest;
pub use video::VideoAnalysisResponse;
pub use image_gen::ImageGenerationRequest;
pub use image_gen::ImageGenerationResponse;
pub use image_gen::GeneratedImage;
pub use image_gen::AspectRatio;
pub use image_gen::ImageQuality;
pub use image_gen::ImageFormat;
pub use tts::SpeechRequest;
pub use tts::SpeechResponse;
pub use tts::Voice;
pub use tts::AudioFormat;
pub use video_gen::VideoGenerationRequest;
pub use video_gen::VideoGenerationResponse;
pub use video_gen::VideoGenerationJob;
pub use video_gen::VideoGenerationStatus;
pub use video_gen::VideoAspectRatio;
pub use video_gen::VideoResolution;
pub use video_gen::VideoDuration;
pub use video_gen::VideoInputImage;
pub use mcp::McpGateway;
pub use mcp::ListServersResponse;

Modules§

agent
batch
Batch processing support for AI providers
client
embeddings
error
image_gen
mcp
MCP (Model Context Protocol) integration
message
realtime
Real-time audio streaming support for AI providers
request
response
stream
tool
tool_helpers
transcription
tts
video
video_gen

Structs§

CallToolResult
The result of a tool call operation.
Tool
A tool that can be used by a model.