Skip to main content

FormationClient

Struct FormationClient 

Source
pub struct FormationClient { /* private fields */ }

Implementations§

Source§

impl FormationClient

Source

pub fn new(config: FormationConfig) -> Result<Self>

Source

pub async fn health(&self) -> Result<Value>

Source

pub async fn get_status(&self) -> Result<Value>

Source

pub async fn get_config(&self) -> Result<Value>

Source

pub async fn get_formation_info(&self) -> Result<Value>

Source

pub async fn get_agents(&self) -> Result<Value>

Source

pub async fn get_agent(&self, agent_id: &str) -> Result<Value>

Source

pub async fn get_mcp_servers(&self) -> Result<Value>

Source

pub async fn get_mcp_server(&self, server_id: &str) -> Result<Value>

Source

pub async fn get_mcp_tools(&self) -> Result<Value>

Source

pub async fn get_secrets(&self) -> Result<Value>

Source

pub async fn get_secret(&self, key: &str) -> Result<Value>

Source

pub async fn set_secret(&self, key: &str, value: &str) -> Result<Value>

Source

pub async fn delete_secret(&self, key: &str) -> Result<Value>

Source

pub async fn chat(&self, payload: Value, user_id: Option<&str>) -> Result<Value>

Source

pub fn chat_stream<'a>( &'a self, payload: Value, user_id: Option<&'a str>, ) -> impl Stream<Item = Result<SseEvent>> + 'a

Source

pub async fn audio_chat( &self, payload: Value, user_id: Option<&str>, ) -> Result<Value>

Source

pub fn audio_chat_stream<'a>( &'a self, payload: Value, user_id: Option<&'a str>, ) -> impl Stream<Item = Result<SseEvent>> + 'a

Source

pub async fn get_sessions( &self, user_id: &str, limit: Option<u32>, ) -> Result<Value>

Source

pub async fn get_session( &self, session_id: &str, user_id: &str, ) -> Result<Value>

Source

pub async fn get_session_messages( &self, session_id: &str, user_id: &str, ) -> Result<Value>

Source

pub async fn restore_session( &self, session_id: &str, user_id: &str, messages: Value, ) -> Result<Value>

Source

pub async fn get_requests(&self, user_id: &str) -> Result<Value>

Source

pub async fn get_request_status( &self, request_id: &str, user_id: &str, ) -> Result<Value>

Source

pub async fn cancel_request( &self, request_id: &str, user_id: &str, ) -> Result<Value>

Source

pub async fn get_memory_config(&self) -> Result<Value>

Source

pub async fn get_memories( &self, user_id: &str, limit: Option<u32>, ) -> Result<Value>

Source

pub async fn add_memory( &self, user_id: &str, memory_type: &str, detail: &str, ) -> Result<Value>

Source

pub async fn delete_memory( &self, user_id: &str, memory_id: &str, ) -> Result<Value>

Source

pub async fn get_user_buffer(&self, user_id: &str) -> Result<Value>

Source

pub async fn clear_user_buffer(&self, user_id: &str) -> Result<Value>

Source

pub async fn clear_all_buffers(&self) -> Result<Value>

Source

pub async fn clear_session_buffer( &self, user_id: &str, session_id: &str, ) -> Result<Value>

Source

pub async fn get_buffer_stats(&self) -> Result<Value>

Source

pub async fn get_scheduler_config(&self) -> Result<Value>

Source

pub async fn get_scheduler_jobs(&self, user_id: &str) -> Result<Value>

Source

pub async fn get_scheduler_job(&self, job_id: &str) -> Result<Value>

Source

pub async fn create_scheduler_job( &self, job_type: &str, schedule: &str, message: &str, user_id: &str, ) -> Result<Value>

Source

pub async fn delete_scheduler_job(&self, job_id: &str) -> Result<Value>

Source

pub async fn update_scheduler_job( &self, job_id: &str, updates: Value, ) -> Result<Value>

Source

pub async fn pause_scheduler_job(&self, job_id: &str) -> Result<Value>

Source

pub async fn resume_scheduler_job(&self, job_id: &str) -> Result<Value>

Source

pub async fn get_async_config(&self) -> Result<Value>

Source

pub async fn get_a2a_config(&self) -> Result<Value>

Source

pub async fn get_logging_config(&self) -> Result<Value>

Source

pub async fn get_logging_destinations(&self) -> Result<Value>

Source

pub async fn get_overlord_config(&self) -> Result<Value>

Source

pub async fn get_overlord_soul(&self) -> Result<Value>

Source

pub async fn get_llm_settings(&self) -> Result<Value>

Source

pub async fn get_triggers(&self) -> Result<Value>

Source

pub async fn get_trigger(&self, name: &str) -> Result<Value>

Source

pub async fn fire_trigger( &self, name: &str, data: Value, is_async: bool, user_id: Option<&str>, ) -> Result<Value>

Source

pub async fn get_sops(&self) -> Result<Value>

Source

pub async fn get_sop(&self, name: &str) -> Result<Value>

Source

pub async fn get_audit_log(&self) -> Result<Value>

Source

pub async fn clear_audit_log(&self) -> Result<Value>

Source

pub async fn list_credential_services(&self) -> Result<Value>

Source

pub async fn list_credentials(&self, user_id: &str) -> Result<Value>

Source

pub async fn get_credential( &self, credential_id: &str, user_id: &str, ) -> Result<Value>

Source

pub async fn create_credential( &self, user_id: &str, payload: Value, ) -> Result<Value>

Source

pub async fn delete_credential( &self, credential_id: &str, user_id: &str, ) -> Result<Value>

Source

pub async fn get_user_identifiers(&self, user_id: &str) -> Result<Value>

Source

pub fn stream_events<'a>( &'a self, user_id: &'a str, ) -> impl Stream<Item = Result<SseEvent>> + 'a

Source

pub fn stream_logs<'a>( &'a self, filters: Option<Vec<(&'a str, String)>>, ) -> impl Stream<Item = Result<SseEvent>> + 'a

Source

pub async fn resolve_user( &self, identifier: &str, create_user: bool, ) -> Result<Value>

Trait Implementations§

Source§

impl Clone for FormationClient

Source§

fn clone(&self) -> FormationClient

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more