Download crates/forge_domain/src/chat_request.rs from SaylorTwift/forgecode: direct link, hf CLI and curl.
- Browser
- Download file 433 Bytes
-
https://huggingface.co/SaylorTwift/forgecode/resolve/main/crates/forge_domain/src/chat_request.rs
- Command line
-
hf download hf://SaylorTwift/forgecode/crates/forge_domain/src/chat_request.rs
-
curl -L -o chat_request.rs https://huggingface.co/SaylorTwift/forgecode/resolve/main/crates/forge_domain/src/chat_request.rs
433 Bytes
| use derive_setters::Setters; | |
| use serde::{Deserialize, Serialize}; | |
| use crate::{ConversationId, Event}; | |
| pub struct ChatRequest { | |
| pub event: Event, | |
| pub conversation_id: ConversationId, | |
| } | |
| impl ChatRequest { | |
| pub fn new(content: Event, conversation_id: ConversationId) -> Self { | |
| Self { event: content, conversation_id } | |
| } | |
| } | |