Skip to main content

AnnaAgent Generator

The AnnaAgent Generator creates character files specifically designed for the AnnaAgent client method, which supports multi-session counseling with dynamic memory evolution.

Overview

PropertyValue
KeyannaAgent
TypeLLM-based
OutputAnnaAgent character files

Description

The AnnaAgent Generator produces detailed character specifications that are compatible with the AnnaAgent client method. It creates profiles with rich backstories, presenting problems, and memory structures that can evolve across multiple therapy sessions.

Key Features

  • Multi-session Support - Generates characters designed for longitudinal therapy
  • Memory Evolution - Creates initial memory states that can dynamically update
  • Rich Backstories - Detailed personal histories and context
  • Session Goals - Defines therapeutic objectives for each character

Configuration

YAML Configuration

generator:
type: annaAgent
config:
model: gpt-4o
temperature: 0.8
include_memory_structure: true

Python Usage

from patienthub.generators import GeneratorRegistry

generator = GeneratorRegistry.create("annaAgent", config={
"model": "gpt-4o",
"temperature": 0.8
})

character = generator.generate({
"disorder": "depression",
"severity": "moderate",
"session_count": 5
})

Parameters

ParameterTypeDefaultDescription
modelstringgpt-4oThe LLM model to use
temperaturefloat0.8Controls creativity in generation
include_memory_structurebooltrueInclude dynamic memory initialization

Output Format

{
"name": "Sarah",
"age": 28,
"background": "Software engineer dealing with work-related stress...",
"presenting_problem": "Difficulty sleeping, persistent sadness...",
"memory": {
"core_beliefs": ["I'm not good enough"],
"recent_events": [...],
"therapeutic_progress": []
},
"session_goals": [...]
}

Use Cases

  • Creating diverse client pools for multi-session research
  • Generating training data for AnnaAgent clients
  • Building character libraries for educational purposes