pub struct AgentsResource { /* private fields */ }Expand description
Operations on the Agents API (cloud mode only).
All methods return HTTP 503 when the server runs in native/standalone mode.
Obtain via [LlmrixClient::agents].
Implementations§
Source§impl AgentsResource
impl AgentsResource
Sourcepub async fn create(&self, req: AgentCreateRequest) -> Result<Agent>
pub async fn create(&self, req: AgentCreateRequest) -> Result<Agent>
Create a new agent.
Sourcepub async fn update(
&self,
agent_id: i64,
req: AgentUpdateRequest,
) -> Result<Agent>
pub async fn update( &self, agent_id: i64, req: AgentUpdateRequest, ) -> Result<Agent>
Update an agent’s properties. Only non-None fields are sent.
Auto Trait Implementations§
impl !RefUnwindSafe for AgentsResource
impl !UnwindSafe for AgentsResource
impl Freeze for AgentsResource
impl Send for AgentsResource
impl Sync for AgentsResource
impl Unpin for AgentsResource
impl UnsafeUnpin for AgentsResource
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