Rust

role

Module

Who takes part in a conversation.

Contents

use utopia_agents::Role;
Rust
pub trait Role

A participant of a conversation: an id, a display name, and the role identifier its messages carry. Implement it for participants of your own.

Rust
pub const ROLE_ASSISTANT: &str = "assistant"

The role of messages an assistant sends.

Rust
pub const ROLE_USER: &str = "user"

The role of messages a user sends.