pub struct AiRequest {
pub system_prompt: String,
pub user_prompt: String,
pub json_schema: Option<String>,
pub working_dir: String,
}Expand description
A request to an AI provider.
Fields§
§system_prompt: StringSystem prompt that sets the AI’s behavior.
user_prompt: StringUser prompt with the actual task.
json_schema: Option<String>Optional JSON schema for structured output.
working_dir: StringWorking directory for tool execution.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AiRequest
impl RefUnwindSafe for AiRequest
impl Send for AiRequest
impl Sync for AiRequest
impl Unpin for AiRequest
impl UnsafeUnpin for AiRequest
impl UnwindSafe for AiRequest
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