pub struct CompletionMessagesResponse {
pub base: MessageBase,
pub task_id: String,
pub event: String,
pub mode: AppMode,
pub answer: String,
pub metadata: HashMap<String, Value>,
}
Expand description
文本生成的响应
Fields§
§base: MessageBase
消息基础信息
task_id: String
任务 ID,用于请求跟踪和下方的停止响应接口
event: String
事件
mode: AppMode
App 模式
answer: String
完整回复内容
metadata: HashMap<String, Value>
元数据
Trait Implementations§
Source§impl Clone for CompletionMessagesResponse
impl Clone for CompletionMessagesResponse
Source§fn clone(&self) -> CompletionMessagesResponse
fn clone(&self) -> CompletionMessagesResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CompletionMessagesResponse
impl Debug for CompletionMessagesResponse
Source§impl<'de> Deserialize<'de> for CompletionMessagesResponse
impl<'de> Deserialize<'de> for CompletionMessagesResponse
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 CompletionMessagesResponse
impl RefUnwindSafe for CompletionMessagesResponse
impl Send for CompletionMessagesResponse
impl Sync for CompletionMessagesResponse
impl Unpin for CompletionMessagesResponse
impl UnwindSafe for CompletionMessagesResponse
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