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.
BotChannel
Defined in the bots module.
Rust AI Agent SDK
Represents a channel/chat in a messaging platform.
Fields
| Name | Type | Description |
|---|
channel_id | String | Platform-specific channel identifier |
name | Option<String> | Channel name (if available) |
channel_type | String | Type of channel (dm, group, channel, thread) |
metadata | HashMap<String | Additional platform-specific metadata |
serde_json | :Value> | Additional platform-specific metadata |
Methods
new
fn new(channel_id: impl Into<String>) -> Self
Create a new bot channel.
Parameters:
| Name | Type |
|---|
channel_id | impl Into<String> |
name
fn name(mut self, name: impl Into<String>) -> Self
Set channel name.
Parameters:
| Name | Type |
|---|
name | impl Into<String> |
channel_type
fn channel_type(mut self, channel_type: impl Into<String>) -> Self
Set channel type.
Parameters:
| Name | Type |
|---|
channel_type | impl Into<String> |
fn metadata(mut self, key: impl Into<String>, value: serde_json::Value) -> Self
Add metadata.
Parameters:
| Name | Type |
|---|
key | impl Into<String> |
value | serde_json::Value |
Source
View on GitHub
praisonai/src/bots/mod.rs at line 148