examples/

directory
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2026 License: MIT

README

tavus-go Examples

This directory contains example applications demonstrating how to use the tavus-go SDK.

Prerequisites

Set your Tavus API key:

export TAVUS_API_KEY=your-api-key

Examples

basic

Basic conversation creation and management. Demonstrates:

  • Creating a Tavus client
  • Listing available faces and PALs
  • Creating and ending a conversation
cd basic
go run main.go
list-resources

List all resources in your Tavus account. Useful for exploring what's available.

cd list-resources
go run main.go
pal-management

PAL (Personality AI Layer) management. Demonstrates:

  • Creating a PAL with custom instructions
  • Creating guardrails for behavioral boundaries
  • Creating objectives for conversation goals
  • Updating PAL settings
cd pal-management
go run main.go
tool-calling

Function calling with PALs. Demonstrates:

  • Creating tools with JSON schema parameters
  • Attaching tools to PALs
  • Listing and managing tools
cd tool-calling
go run main.go

LiveKit Integration

For LiveKit transport integration examples, see the omni-livekit project which demonstrates real-time avatar sessions using LiveKit.

Directories

Path Synopsis
Example: Basic conversation creation and management
Example: Basic conversation creation and management
Example: Custom LLM backend integration
Example: Custom LLM backend integration
Example: Custom LLM Server (OpenAI-compatible)
Example: Custom LLM Server (OpenAI-compatible)
Example: List all Tavus resources
Example: List all Tavus resources
Example: PAL (Personality AI Layer) management
Example: PAL (Personality AI Layer) management
Example: Tool calling with PALs
Example: Tool calling with PALs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL