pub struct PlaygroundApi { /* private fields */ }Expand description
Visual builder and agent playground
Implementations§
Source§impl PlaygroundApi
impl PlaygroundApi
Sourcepub async fn get_playground_canvas(
&self,
agent_id: &str,
) -> Result<PlaygroundAgentState>
pub async fn get_playground_canvas( &self, agent_id: &str, ) -> Result<PlaygroundAgentState>
Load agent canvas state for visual builder
GET /api/v1/playground/agents/{agentId}
Sourcepub async fn list_playground_templates(
&self,
) -> Result<ListPlaygroundTemplatesResponse>
pub async fn list_playground_templates( &self, ) -> Result<ListPlaygroundTemplatesResponse>
List starter templates for visual builder
GET /api/v1/playground/templates
Sourcepub async fn run(
&self,
agent_id: &str,
body: &Map<String, Value>,
) -> Result<Run>
pub async fn run( &self, agent_id: &str, body: &Map<String, Value>, ) -> Result<Run>
Execute agent in playground
POST /api/v1/playground/agents/{agentId}/run
Required scopes: runs:create.
Sourcepub async fn save_playground_canvas(
&self,
agent_id: &str,
body: &Map<String, Value>,
) -> Result<PlaygroundAgentState>
pub async fn save_playground_canvas( &self, agent_id: &str, body: &Map<String, Value>, ) -> Result<PlaygroundAgentState>
Save agent canvas state
PUT /api/v1/playground/agents/{agentId}
Trait Implementations§
Source§impl Clone for PlaygroundApi
impl Clone for PlaygroundApi
Source§fn clone(&self) -> PlaygroundApi
fn clone(&self) -> PlaygroundApi
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for PlaygroundApi
impl !UnwindSafe for PlaygroundApi
impl Freeze for PlaygroundApi
impl Send for PlaygroundApi
impl Sync for PlaygroundApi
impl Unpin for PlaygroundApi
impl UnsafeUnpin for PlaygroundApi
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