pub struct Agents { /* private fields */ }Implementations§
Source§impl Agents
impl Agents
pub fn new(base_url: String, client: Client) -> Self
pub async fn list(&self) -> Result<AgentListResponse>
pub async fn get(&self, id: &str) -> Result<Agent>
pub async fn create(&self, request: CreateAgentRequest) -> Result<Agent>
pub async fn delete(&self, id: &str) -> Result<()>
pub async fn message(&self, id: &str, message: &str) -> Result<MessageResponse>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Agents
impl !RefUnwindSafe for Agents
impl Send for Agents
impl Sync for Agents
impl Unpin for Agents
impl UnsafeUnpin for Agents
impl !UnwindSafe for Agents
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