yaver library
Yaver SDK for Flutter & Dart.
Embed Yaver's P2P AI agent connectivity into your apps.
import 'package:yaver/yaver.dart';
final client = YaverClient('http://localhost:18080', 'your-token');
final task = await client.createTask('Fix the login bug');
await for (final chunk in client.streamOutput(task.id)) {
stdout.write(chunk);
}
Classes
- AgentInfo
- Agent information returned by /info.
- CleanResult
- Result of agent cleanup.
- CreateTaskOptions
- Options for creating a new task.
- Device
- A registered device.
- ExecOptions
- Options for starting a remote command.
- ExecSession
- A remote command execution session.
- ImageAttachment
- An image attachment for task creation or continuation.
- SpeechContext
- Speech context metadata sent with task creation.
- SpeechProviderInfo
- Information about a speech provider.
- Task
- A task returned by the agent.
- TranscriptionResult
- Result of a speech transcription.
- Turn
- A conversation turn within a task.
- User
- User information from Convex auth.
- UserSettings
- User settings stored in Convex.
- YaverAuthClient
- Auth client for the Yaver Convex backend.
- YaverClient
- Yaver client — connects to a Yaver agent's HTTP API.
Enums
- ExecStatus
- Status of an exec session.
- SpeechProvider
- Speech-to-text provider identifier.
- TaskStatus
- Task status values returned by the agent.
Constants
-
speechProviders
→ const List<
SpeechProviderInfo> - Available speech-to-text providers.
Functions
-
transcribe(
List< int> audioBytes, SpeechProvider provider, String? apiKey, {String filename = 'audio.m4a'}) → Future<TranscriptionResult> - Transcribe audio bytes using a cloud speech-to-text provider.
Exceptions / Errors
- YaverException
- Exception thrown by YaverClient on errors.