core/index library

Classes

AgentCoordinator
Coordinates multiple VanturaAgents, allowing them to hand off the conversation to each other based on user needs.
AgentStateCheckpoint
Represents a serialized snapshot of an agent's execution state. This allows resuming interrupted sessions if the app is closed during a tool execution or long generation.
AnthropicClient
A client for communicating with Anthropic's Claude API.
CancellationToken
A token that can be passed to operations to allow them to be cancelled.
ErrorEvent
FinishEvent
GeminiClient
A client for communicating with Google's Gemini API via REST.
LlmClient
Common interface for all LLM clients in the Vantura framework.
LogEvent
NullArgs
Represents null arguments for tools that don't take any parameters.
RunCommand
SchemaHelper
Helper class for generating JSON schemas from Dart Maps. Simplifies tool parameter definition by automatically wrapping properties in the standard JSON schema object structure.
SdkLoggerObserver
A default observer that redirects hooks to the internal VanturaLogger.
SimpleVanturaLogger
Simple logger implementation for the Vantura SDK.
StatusEvent
ThoughtEvent
TokenUsage
Tracks token usage out of a completed generation or run.
ToolRequestEvent
ToolResponseCommand
VanturaAgent
Agent that interacts with the Vantura API and uses tools.
VanturaClient
Client for interacting with the Vantura AI API.
VanturaLogger
Abstract logger interface for the Vantura SDK.
VanturaLoggerOptions
Configuration for Vantura logging.
VanturaMemory
Manages agent memory including short-term history and long-term summarization.
VanturaMessage
Represents a formal message in the Vantura ecosystem.
VanturaObserver
An observer that can hook into the reasoning cycle of a VanturaAgent.
VanturaPersistence
Interface for persistent storage of agent memory.
VanturaResponse
A response from the VanturaAgent.
VanturaSecurity
A utility for redacting sensitive information (PII) from prompts and logs.
VanturaState
Manages the state of an VanturaAgent run for UI synchronization.
VanturaTool<T>
Abstract base class for Vantura tools that can be used by the agent.
VanturaWorker
A worker that manages an isolate for background agent execution.
VanturaWorkerEvent
Base class for all events sent from the VanturaWorker isolate to the main thread.
WorkerCommand
Commands sent from the main thread to the VanturaWorker isolate.

Enums

MessageRole
Defines the role of a message in the conversation history.
VanturaLogLevel
Log levels for Vantura SDK.

Mixins

UnredactedTool
A mixin or interface for tools that want to opt-out of redaction (e.g. internal system tools).

Properties

sdkLogger VanturaLogger
Global SDK logger instance. In a real app, developers should be able to replace this.
getter/setter pair

Exceptions / Errors

VanturaApiException
Thrown when the Vantura API returns an error response.
VanturaCancellationException
Thrown when an operation is cancelled by the user.
VanturaException
Base class for all exceptions thrown by the Vantura SDK.
VanturaIterationException
Thrown when the agent exceeds the maximum allowed reasoning iterations.
VanturaRateLimitException
Thrown when the agent hits an API rate limit (HTTP 429).
VanturaToolException
Thrown when a tool execution fails.