Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.praison.ai/llms.txt

Use this file to discover all available pages before exploring further.

LlmMessage

Defined in the protocols module.
Rust AI Agent SDK An LLM message.

Fields

NameTypeDescription
roleStringMessage role
contentStringMessage content

Methods

system

fn system(content: impl Into<String>) -> Self
Create a system message Parameters:
NameType
contentimpl Into&lt;String&gt;

user

fn user(content: impl Into<String>) -> Self
Create a user message Parameters:
NameType
contentimpl Into&lt;String&gt;

assistant

fn assistant(content: impl Into<String>) -> Self
Create an assistant message Parameters:
NameType
contentimpl Into&lt;String&gt;

Source

View on GitHub

praisonai/src/protocols/mod.rs at line 164

Rust LLM

Rust Providers

Rust Failover