pub struct ChatRequest {
pub message: String,
pub agent_type: Option<AgentType>,
pub context_id: Option<String>,
pub workspace_id: Option<String>,
pub model: Option<String>,
pub parts: Option<Vec<ContentPart>>,
pub previous_response_id: Option<String>,
pub web_search: Option<bool>,
}Expand description
Request payload for chat endpoints.
Fields§
§message: StringThe user’s message to send to the agent.
agent_type: Option<AgentType>Optional agent type to handle the request. Defaults to router.
context_id: Option<String>Optional context ID for conversation continuity.
workspace_id: Option<String>Optional Eruka workspace_id for per-user context isolation. When set, the Eruka context middleware queries this workspace instead of the default.
model: Option<String>Optional per-request model override (Cordis intercept payload).
parts: Option<Vec<ContentPart>>Optional multimodal parts. When set, they travel on the wire with message.
previous_response_id: Option<String>OpenAI Responses stateful continuation id.
web_search: Option<bool>When true, attach the LLM provider’s built-in web search (not daedra).
Trait Implementations§
Source§impl Debug for ChatRequest
impl Debug for ChatRequest
Source§impl<'de> Deserialize<'de> for ChatRequest
impl<'de> Deserialize<'de> for ChatRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ChatRequest
impl RefUnwindSafe for ChatRequest
impl Send for ChatRequest
impl Sync for ChatRequest
impl Unpin for ChatRequest
impl UnsafeUnpin for ChatRequest
impl UnwindSafe for ChatRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more