usersim

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package usersim implements evaltype.Simulator: a simulated end-user that answers the agent's clarification questions, drawing on the scenario persona (who they are + what they know). Answers are produced by an LLM so free-text items get realistic prose; select / multi_select items are constrained to the offered options.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Simulator

type Simulator struct {
	// contains filtered or unexported fields
}

Simulator answers agent questions as the configured persona.

func New

func New(completer evaltype.Completer, persona scenario.Persona, language string) *Simulator

New builds a Simulator. language is the conversation language the answers are written in (the scenario's meta.language); empty leaves it to the model.

func (*Simulator) Answer

Answer produces replies to every item of the question.

Jump to

Keyboard shortcuts

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