Help us shape the future of Go! Take the 2026 Go Developer Survey

usersim

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 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