conversational

command
v0.0.0-...-140e820 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package main demonstrates the Conversational pattern for maintaining context.

The Conversational pattern enables agents to maintain context across multiple turns of conversation with automatic history management, pruning, and persistence.

This example shows:

  • Creating conversational agents with history tracking
  • Multi-turn conversations with context retention
  • History pruning and capacity management
  • Exporting and importing conversation history
  • Clearing history while preserving system prompts

Run with: go run conversational_pattern.go

Jump to

Keyboard shortcuts

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