pub struct SystempromptClient { /* private fields */ }Implementations§
Source§impl SystempromptClient
impl SystempromptClient
pub fn new(base_url: &str) -> ClientResult<Self>
pub fn with_timeout(base_url: &str, timeout_secs: u64) -> ClientResult<Self>
pub fn with_token(self, token: JwtToken) -> Self
pub fn set_token(&mut self, token: JwtToken)
pub const fn token(&self) -> Option<&JwtToken>
pub fn base_url(&self) -> &str
pub async fn list_agents(&self) -> ClientResult<Vec<AgentCard>>
pub async fn get_agent_card(&self, agent_name: &str) -> ClientResult<AgentCard>
pub async fn list_contexts(&self) -> ClientResult<Vec<UserContextWithStats>>
pub async fn get_context( &self, context_id: &ContextId, ) -> ClientResult<UserContext>
pub async fn create_context( &self, name: Option<&str>, ) -> ClientResult<UserContext>
pub async fn create_context_auto_name(&self) -> ClientResult<UserContext>
pub async fn fetch_or_create_context(&self) -> ClientResult<ContextId>
pub async fn update_context_name( &self, context_id: &str, name: &str, ) -> ClientResult<()>
pub async fn delete_context(&self, context_id: &str) -> ClientResult<()>
pub async fn list_tasks(&self, context_id: &str) -> ClientResult<Vec<Task>>
pub async fn delete_task(&self, task_id: &str) -> ClientResult<()>
pub async fn list_artifacts(&self, context_id: &str) -> ClientResult<Vec<Value>>
pub async fn check_health(&self) -> bool
pub async fn verify_token(&self) -> ClientResult<bool>
pub async fn send_message( &self, agent_name: &str, context_id: &ContextId, message: Value, ) -> ClientResult<Value>
pub async fn list_logs(&self, limit: Option<u32>) -> ClientResult<Vec<LogEntry>>
pub async fn list_users( &self, limit: Option<u32>, ) -> ClientResult<Vec<UserInfo>>
pub async fn get_analytics(&self) -> ClientResult<AnalyticsData>
pub async fn list_all_artifacts( &self, limit: Option<u32>, ) -> ClientResult<Vec<Value>>
Trait Implementations§
Source§impl Clone for SystempromptClient
impl Clone for SystempromptClient
Source§fn clone(&self) -> SystempromptClient
fn clone(&self) -> SystempromptClient
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 SystempromptClient
impl !RefUnwindSafe for SystempromptClient
impl Send for SystempromptClient
impl Sync for SystempromptClient
impl Unpin for SystempromptClient
impl !UnwindSafe for SystempromptClient
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