pub struct CursorClient { /* private fields */ }Implementations§
Source§impl CursorClient
impl CursorClient
pub fn builder() -> CursorClientBuilder
pub fn from_env() -> Result<Self>
pub async fn me(&self) -> Result<ApiKeyInfo>
pub async fn list_models(&self) -> Result<ModelListResponse>
pub async fn list_repositories(&self) -> Result<RepositoryListResponse>
pub async fn create_agent( &self, request: &CreateAgentRequest, ) -> Result<CreateAgentResponse>
pub async fn list_agents( &self, params: &ListAgentsParams, ) -> Result<ListResponse<AgentSummary>>
pub async fn get_agent(&self, agent_id: &str) -> Result<Agent>
pub async fn create_run( &self, agent_id: &str, request: &CreateRunRequest, ) -> Result<CreateRunResponse>
pub async fn list_runs( &self, agent_id: &str, params: &ListRunsParams, ) -> Result<ListResponse<Run>>
pub async fn get_run(&self, agent_id: &str, run_id: &str) -> Result<Run>
pub async fn cancel_run(&self, agent_id: &str, run_id: &str) -> Result<Value>
pub async fn list_artifacts( &self, agent_id: &str, ) -> Result<ListResponse<Artifact>>
pub async fn download_artifact_url( &self, agent_id: &str, path: &str, ) -> Result<DownloadArtifactResponse>
pub async fn archive_agent(&self, agent_id: &str) -> Result<Value>
pub async fn unarchive_agent(&self, agent_id: &str) -> Result<Value>
pub async fn delete_agent(&self, agent_id: &str) -> Result<()>
pub async fn stream_run( &self, agent_id: &str, run_id: &str, last_event_id: Option<&str>, ) -> Result<Pin<Box<dyn Stream<Item = Result<RunStreamMessage>> + Send>>>
pub async fn wait_for_run( &self, agent_id: &str, run_id: &str, options: WaitForRunOptions, ) -> Result<WaitForRunResult>
Trait Implementations§
Source§impl Clone for CursorClient
impl Clone for CursorClient
Source§fn clone(&self) -> CursorClient
fn clone(&self) -> CursorClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CursorClient
impl !RefUnwindSafe for CursorClient
impl Send for CursorClient
impl Sync for CursorClient
impl Unpin for CursorClient
impl UnsafeUnpin for CursorClient
impl !UnwindSafe for CursorClient
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