pub struct CreateSessionRequest {
pub system_prompt: Option<String>,
pub append_system_prompt: Option<String>,
pub session_name: Option<String>,
pub max_steps: Option<u32>,
pub thinking_budget: Option<u32>,
pub permission_mode: Option<String>,
pub max_budget_usd: Option<f64>,
}Expand description
Request body for POST /sessions.
Fields§
§system_prompt: Option<String>§append_system_prompt: Option<String>Append additional text to the server’s default system prompt instead of
replacing it. Ignored when system_prompt is also provided.
session_name: Option<String>Human-readable display name for the session (shown in session list / resume picker).
max_steps: Option<u32>Maximum number of steps (tool calls) allowed in this session.
thinking_budget: Option<u32>Extended-thinking token budget for models that support it (e.g.
Anthropic claude-3-7). 0 disables thinking.
permission_mode: Option<String>Permission mode: "default", "auto", "strict", or "bypass".
max_budget_usd: Option<f64>Maximum total API spend in USD for this session. Agent stops after any turn that would exceed this limit.
Trait Implementations§
Source§impl Debug for CreateSessionRequest
impl Debug for CreateSessionRequest
Source§impl<'de> Deserialize<'de> for CreateSessionRequest
impl<'de> Deserialize<'de> for CreateSessionRequest
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 CreateSessionRequest
impl RefUnwindSafe for CreateSessionRequest
impl Send for CreateSessionRequest
impl Sync for CreateSessionRequest
impl Unpin for CreateSessionRequest
impl UnsafeUnpin for CreateSessionRequest
impl UnwindSafe for CreateSessionRequest
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.