pub struct AgentApi { /* private fields */ }Expand description
Agent configuration API operations
Implementations§
Source§impl AgentApi
impl AgentApi
Sourcepub async fn get_config(&self) -> ApiResult<GetAgentConfigResponse>
pub async fn get_config(&self) -> ApiResult<GetAgentConfigResponse>
Get agent configuration
Sourcepub async fn update_config(
&self,
request: &UpdateAgentConfigRequest,
) -> ApiResult<AgentConfig>
pub async fn update_config( &self, request: &UpdateAgentConfigRequest, ) -> ApiResult<AgentConfig>
Update agent configuration
Sourcepub async fn set_runtime(&self, runtime: AgentRuntime) -> ApiResult<AgentConfig>
pub async fn set_runtime(&self, runtime: AgentRuntime) -> ApiResult<AgentConfig>
Set agent runtime
Sourcepub async fn set_model_config(
&self,
model_config: AgentModelConfig,
) -> ApiResult<AgentConfig>
pub async fn set_model_config( &self, model_config: AgentModelConfig, ) -> ApiResult<AgentConfig>
Set model configuration
Sourcepub async fn set_timeout(&self, timeout_secs: u64) -> ApiResult<AgentConfig>
pub async fn set_timeout(&self, timeout_secs: u64) -> ApiResult<AgentConfig>
Set execution timeout
Sourcepub async fn set_claude_code_path(&self, path: String) -> ApiResult<AgentConfig>
pub async fn set_claude_code_path(&self, path: String) -> ApiResult<AgentConfig>
Set Claude Code path override
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AgentApi
impl RefUnwindSafe for AgentApi
impl !Send for AgentApi
impl !Sync for AgentApi
impl Unpin for AgentApi
impl UnwindSafe for AgentApi
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.