Skip to main content

LocalPlatformStore

Struct LocalPlatformStore 

Source
pub struct LocalPlatformStore { /* private fields */ }
Expand description

Local platform store for one (org, session) scope, backed by a LocalSessionRunner.

Implementations§

Source§

impl LocalPlatformStore

Source

pub fn new( runner: Arc<dyn LocalSessionRunner>, base_url: impl Into<String>, ) -> Self

Trait Implementations§

Source§

impl Clone for LocalPlatformStore

Source§

fn clone(&self) -> LocalPlatformStore

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl PlatformStore for LocalPlatformStore

Source§

fn create_session<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, harness_id: HarnessId, agent_id: Option<AgentId>, title: Option<&'life1 str>, locale: Option<&'life2 str>, blueprint_id: Option<&'life3 str>, _blueprint_config: Option<&'life4 Value>, parent_session_id: Option<SessionId>, ) -> Pin<Box<dyn Future<Output = Result<Session>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Create a new session. Read more
Source§

fn get_session_by_id<'life0, 'async_trait>( &'life0 self, id: SessionId, ) -> Pin<Box<dyn Future<Output = Result<Option<Session>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get a session by ID.
Source§

fn list_sessions<'life0, 'async_trait>( &'life0 self, limit: Option<usize>, agent_id: Option<AgentId>, ) -> Pin<Box<dyn Future<Output = Result<Vec<Session>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List sessions, optionally filtered by agent.
Source§

fn send_message<'life0, 'life1, 'async_trait>( &'life0 self, session_id: SessionId, content: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Send a user message to a session, triggering a turn.
Source§

fn get_messages<'life0, 'async_trait>( &'life0 self, session_id: SessionId, limit: Option<usize>, ) -> Pin<Box<dyn Future<Output = Result<Vec<PlatformMessage>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get messages from a session (most recent first). Default limit is 10.
Source§

fn wait_for_idle<'life0, 'async_trait>( &'life0 self, session_id: SessionId, _timeout_secs: Option<u64>, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Wait for a session to become idle (turn completed). Returns the final session status as a string. Default timeout is 120 seconds.
Source§

fn base_url(&self) -> &str

Base URL for constructing UI links (e.g., “http://localhost:9300”).
Source§

fn list_harnesses<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Harness>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List all harnesses in the organization.
Source§

fn get_harness<'life0, 'async_trait>( &'life0 self, _id: HarnessId, ) -> Pin<Box<dyn Future<Output = Result<Option<Harness>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get a harness by ID.
Source§

fn create_harness<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>( &'life0 self, _name: &'life1 str, _display_name: Option<&'life2 str>, _description: Option<&'life3 str>, _system_prompt: Option<&'life4 str>, _parent_harness_id: Option<HarnessId>, _capabilities: &'life5 [String], ) -> Pin<Box<dyn Future<Output = Result<Harness>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, 'life5: 'async_trait,

Create a new harness. Read more
Source§

fn update_harness<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, _id: HarnessId, _name: Option<&'life1 str>, _display_name: Option<&'life2 str>, _description: Option<&'life3 str>, _system_prompt: Option<&'life4 str>, _parent_harness_id: Option<Option<HarnessId>>, ) -> Pin<Box<dyn Future<Output = Result<Harness>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Update a harness (only provided fields are changed).
Source§

fn delete_harness<'life0, 'async_trait>( &'life0 self, _id: HarnessId, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Delete (archive) a harness.
Source§

fn copy_harness<'life0, 'life1, 'async_trait>( &'life0 self, _id: HarnessId, _new_name: Option<&'life1 str>, ) -> Pin<Box<dyn Future<Output = Result<Harness>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Copy a harness, optionally with a new name.
Source§

fn list_agents<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Agent>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List all agents in the organization.
Source§

fn get_agent_by_id<'life0, 'async_trait>( &'life0 self, _id: AgentId, ) -> Pin<Box<dyn Future<Output = Result<Option<Agent>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get an agent by public ID.
Source§

fn create_agent<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>( &'life0 self, _name: &'life1 str, _display_name: Option<&'life2 str>, _description: Option<&'life3 str>, _system_prompt: &'life4 str, _capabilities: &'life5 [String], ) -> Pin<Box<dyn Future<Output = Result<Agent>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, 'life5: 'async_trait,

Create a new agent.
Source§

fn update_agent<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, _id: AgentId, _name: Option<&'life1 str>, _display_name: Option<&'life2 str>, _description: Option<&'life3 str>, _system_prompt: Option<&'life4 str>, ) -> Pin<Box<dyn Future<Output = Result<Agent>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Update an agent (only provided fields are changed).
Source§

fn delete_agent<'life0, 'async_trait>( &'life0 self, _id: AgentId, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Delete (archive) an agent.
Source§

fn list_apps<'life0, 'life1, 'async_trait>( &'life0 self, _search: Option<&'life1 str>, _include_archived: bool, ) -> Pin<Box<dyn Future<Output = Result<Vec<App>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

List all apps in the organization.
Source§

fn get_app<'life0, 'async_trait>( &'life0 self, _id: AppId, ) -> Pin<Box<dyn Future<Output = Result<Option<App>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get an app by ID.
Source§

fn create_app<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, _name: &'life1 str, _description: Option<&'life2 str>, _harness_id: HarnessId, _agent_id: Option<AgentId>, _agent_identity_id: Option<AgentIdentityId>, _channel_type: Option<ChannelType>, _channel_config: Option<&'life3 Value>, ) -> Pin<Box<dyn Future<Output = Result<App>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Create a new app.
Source§

fn update_app<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _id: AppId, _name: Option<&'life1 str>, _description: Option<&'life2 str>, _harness_id: Option<HarnessId>, _agent_id: Option<AgentId>, _agent_identity_id: Option<Option<AgentIdentityId>>, ) -> Pin<Box<dyn Future<Output = Result<App>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Update an app (only provided fields are changed).
Source§

fn delete_app<'life0, 'async_trait>( &'life0 self, _id: AppId, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Archive an app.
Source§

fn destroy_app<'life0, 'async_trait>( &'life0 self, _id: AppId, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Permanently destroy an archived app.
Source§

fn publish_app<'life0, 'async_trait>( &'life0 self, _id: AppId, ) -> Pin<Box<dyn Future<Output = Result<App>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Publish an app.
Source§

fn unpublish_app<'life0, 'async_trait>( &'life0 self, _id: AppId, ) -> Pin<Box<dyn Future<Output = Result<App>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Unpublish an app back to draft.
Source§

fn add_app_channel<'life0, 'life1, 'async_trait>( &'life0 self, _app_id: AppId, _channel_type: ChannelType, _channel_config: Option<&'life1 Value>, _enabled: Option<bool>, ) -> Pin<Box<dyn Future<Output = Result<AppChannel>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Add a channel to an app.
Source§

fn update_app_channel<'life0, 'life1, 'async_trait>( &'life0 self, _app_id: AppId, _channel_id: AppChannelId, _channel_type: Option<ChannelType>, _channel_config: Option<&'life1 Value>, _enabled: Option<bool>, ) -> Pin<Box<dyn Future<Output = Result<AppChannel>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Update a channel on an app.
Source§

fn delete_app_channel<'life0, 'async_trait>( &'life0 self, _app_id: AppId, _channel_id: AppChannelId, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Delete a channel from an app.
Source§

fn get_session_context_report<'life0, 'async_trait>( &'life0 self, _id: SessionId, ) -> Pin<Box<dyn Future<Output = Result<SessionContextReport>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the latest estimated context breakdown for a session.
Source§

fn delete_session<'life0, 'async_trait>( &'life0 self, _id: SessionId, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Delete (archive) a session.
Source§

fn list_capabilities<'life0, 'life1, 'async_trait>( &'life0 self, _search: Option<&'life1 str>, ) -> Pin<Box<dyn Future<Output = Result<Vec<CapabilityInfo>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

List all available capabilities (built-in + MCP servers + skills). 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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> FutureExt for T

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
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> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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