pub struct BoundedChatCompletionSpec {
pub origin: String,
pub path: String,
pub model: String,
pub prompt: String,
pub bearer_secret: Option<String>,
pub protocol: BoundedChatCompletionProtocol,
pub max_response_bytes: usize,
}Expand description
A bounded, non-streaming chat completion used by the model intelligence
loop. The response is validated against max_response_bytes before parsing,
and only the completion text escapes the transport layer.
Fields§
§origin: String§path: String§model: String§prompt: String§bearer_secret: Option<String>§protocol: BoundedChatCompletionProtocol§max_response_bytes: usizeTrait Implementations§
Source§impl Clone for BoundedChatCompletionSpec
impl Clone for BoundedChatCompletionSpec
Source§impl Debug for BoundedChatCompletionSpec
impl Debug for BoundedChatCompletionSpec
impl Eq for BoundedChatCompletionSpec
impl StructuralPartialEq for BoundedChatCompletionSpec
Auto Trait Implementations§
impl Freeze for BoundedChatCompletionSpec
impl RefUnwindSafe for BoundedChatCompletionSpec
impl Send for BoundedChatCompletionSpec
impl Sync for BoundedChatCompletionSpec
impl Unpin for BoundedChatCompletionSpec
impl UnsafeUnpin for BoundedChatCompletionSpec
impl UnwindSafe for BoundedChatCompletionSpec
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