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
| Name | Type | Description |
|---|
role | String | Message role |
content | String | Message content |
Methods
system
fn system(content: impl Into<String>) -> Self
Create a system message
Parameters:
| Name | Type |
|---|
content | impl Into<String> |
user
fn user(content: impl Into<String>) -> Self
Create a user message
Parameters:
| Name | Type |
|---|
content | impl Into<String> |
assistant
fn assistant(content: impl Into<String>) -> Self
Create an assistant message
Parameters:
| Name | Type |
|---|
content | impl Into<String> |
Source
View on GitHub
praisonai/src/protocols/mod.rs at line 164