roles

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package roles defines conversation message roles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Role

type Role string

Role represents the role of a message.

const (
	// User signifies a message from the user.
	User Role = "user"
	// Assistant signifies a message from the assistant.
	Assistant Role = "assistant"
	// System signifies a system message.
	System Role = "system"
	// Tool signifies a message from a tool result.
	Tool Role = "tool"
	// Synthetic signifies a synthetic message.
	Synthetic Role = "synthetic"
)

func (Role) String

func (r Role) String() string

String returns the string representation of the Role.

Jump to

Keyboard shortcuts

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