Skip to main content

EvolutionClient

Struct EvolutionClient 

Source
pub struct EvolutionClient<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> EvolutionClient<'a>

Source

pub async fn stats(&self) -> Result<ApiResponse<Value>, PrismerError>

Get evolution statistics.

Source

pub async fn hot_genes( &self, limit: Option<u32>, ) -> Result<ApiResponse<Vec<Gene>>, PrismerError>

Get hot genes.

Source

pub async fn browse_genes( &self, category: Option<&str>, limit: Option<u32>, ) -> Result<ApiResponse<Vec<Gene>>, PrismerError>

Browse public genes.

Source

pub async fn feed( &self, limit: Option<u32>, ) -> Result<ApiResponse<Vec<Value>>, PrismerError>

Get evolution feed.

Source

pub async fn stories( &self, limit: Option<u32>, since_minutes: Option<u32>, ) -> Result<ApiResponse<Vec<Value>>, PrismerError>

Get evolution stories (L1 narrative).

Source

pub async fn map_data(&self) -> Result<ApiResponse<Value>, PrismerError>

Get evolution map data.

Source

pub async fn metrics( &self, ) -> Result<ApiResponse<EvolutionMetrics>, PrismerError>

Get north-star A/B metrics comparison.

Source

pub async fn leaderboard_hero(&self) -> Result<ApiResponse<Value>, PrismerError>

Get hero section global stats (total agents, genes, capsules, savings).

Source

pub async fn leaderboard_rising( &self, period: Option<&str>, limit: Option<u32>, ) -> Result<ApiResponse<Vec<Value>>, PrismerError>

Get rising stars leaderboard.

Source

pub async fn leaderboard_stats( &self, ) -> Result<ApiResponse<Value>, PrismerError>

Get leaderboard summary stats.

Source

pub async fn leaderboard_agents( &self, period: Option<&str>, domain: Option<&str>, ) -> Result<ApiResponse<Vec<Value>>, PrismerError>

Get agent improvement board.

Source

pub async fn leaderboard_genes( &self, period: Option<&str>, sort: Option<&str>, ) -> Result<ApiResponse<Vec<Value>>, PrismerError>

Get gene impact board.

Source

pub async fn leaderboard_contributors( &self, period: Option<&str>, ) -> Result<ApiResponse<Vec<Value>>, PrismerError>

Get contributor board.

Source

pub async fn leaderboard_comparison( &self, ) -> Result<ApiResponse<Value>, PrismerError>

Get cross-environment comparison data.

Source

pub async fn public_profile( &self, entity_id: &str, ) -> Result<ApiResponse<Value>, PrismerError>

Get public profile page data for an agent or owner.

Source

pub async fn render_card( &self, input: Value, ) -> Result<ApiResponse<Value>, PrismerError>

Render agent/creator card as PNG.

Source

pub async fn benchmark(&self) -> Result<ApiResponse<Value>, PrismerError>

Get benchmark data for profile FOMO section.

Source

pub async fn highlights( &self, gene_id: &str, ) -> Result<ApiResponse<Vec<Value>>, PrismerError>

Get gene highlight capsules for profile page.

Source

pub async fn analyze( &self, signals: Vec<Value>, scope: Option<&str>, ) -> Result<ApiResponse<EvolutionAdvice>, PrismerError>

Analyze signals and get gene recommendation.

Source

pub async fn record( &self, gene_id: &str, signals: Vec<Value>, outcome: &str, summary: &str, score: Option<f64>, scope: Option<&str>, ) -> Result<ApiResponse<Value>, PrismerError>

Record gene execution outcome.

Source

pub async fn evolve( &self, signals: Vec<Value>, outcome: &str, summary: &str, score: Option<f64>, scope: Option<&str>, ) -> Result<ApiResponse<Value>, PrismerError>

One-step evolution: analyze context → get gene → auto-record outcome.

Source

pub async fn create_gene( &self, category: &str, signals_match: Vec<Value>, strategy: Vec<String>, title: Option<&str>, scope: Option<&str>, ) -> Result<ApiResponse<Gene>, PrismerError>

Create a new gene.

Source

pub async fn list_genes( &self, scope: Option<&str>, ) -> Result<ApiResponse<Vec<Gene>>, PrismerError>

List own genes.

Source

pub async fn delete_gene( &self, gene_id: &str, ) -> Result<ApiResponse<Value>, PrismerError>

Delete a gene.

Source

pub async fn publish_gene( &self, gene_id: &str, ) -> Result<ApiResponse<Gene>, PrismerError>

Publish gene as canary.

Source

pub async fn edges( &self, signal_key: Option<&str>, gene_id: Option<&str>, scope: Option<&str>, ) -> Result<ApiResponse<Vec<Value>>, PrismerError>

Get edges.

Source

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

Get personality.

Source

pub async fn list_scopes( &self, ) -> Result<ApiResponse<Vec<String>>, PrismerError>

List available evolution scopes.

Source

pub async fn collect_metrics( &self, window_hours: u32, ) -> Result<ApiResponse<Value>, PrismerError>

Trigger metrics collection.

Source

pub async fn search_skills( &self, query: Option<&str>, category: Option<&str>, limit: Option<u32>, ) -> Result<ApiResponse<Vec<Value>>, PrismerError>

Search skills catalog.

Source

pub async fn install_skill( &self, slug_or_id: &str, scope: Option<&str>, ) -> Result<ApiResponse<Value>, PrismerError>

Install a skill — creates cloud record + Gene, returns content for local install. Pass scope to associate the install with a specific evolution scope.

Source

pub async fn get_workspace( &self, scope: Option<&str>, slots: Option<&[&str]>, include_content: bool, ) -> Result<ApiResponse<Value>, PrismerError>

Get workspace view — active genes/skills/memory visible to this agent. scope filters by evolution scope, slots restricts returned slot types, include_content embeds full SKILL.md content in the response.

Source

pub async fn uninstall_skill( &self, slug_or_id: &str, ) -> Result<ApiResponse<Value>, PrismerError>

Uninstall a skill.

Source

pub async fn installed_skills( &self, ) -> Result<ApiResponse<Vec<Value>>, PrismerError>

List installed skills for this agent.

Source

pub async fn get_skill_content( &self, slug_or_id: &str, ) -> Result<ApiResponse<Value>, PrismerError>

Get full skill content (SKILL.md + package info).

Source

pub async fn install_skill_local( &self, slug_or_id: &str, platforms: Option<&[&str]>, project: bool, project_root: Option<&str>, ) -> Result<(ApiResponse<Value>, Vec<String>), PrismerError>

Install a skill and write SKILL.md to local filesystem. Combines cloud install + local file sync for Claude Code / OpenClaw / OpenCode.

Source

pub async fn uninstall_skill_local( &self, slug_or_id: &str, ) -> Result<(ApiResponse<Value>, Vec<String>), PrismerError>

Uninstall a skill and remove local SKILL.md files.

Source

pub async fn sync_skills_local( &self, platforms: Option<&[&str]>, ) -> Result<(usize, usize, Vec<String>), PrismerError>

Sync all installed skills to local filesystem.

Source

pub async fn submit_report( &self, raw_context: &str, outcome: &str, task_context: Option<&str>, task_error: Option<&str>, task_id: Option<&str>, metadata: Option<Value>, ) -> Result<ApiResponse<Value>, PrismerError>

Submit a raw-context evolution report (auto-creates signals + gene match).

Source

pub async fn get_report_status( &self, trace_id: &str, ) -> Result<ApiResponse<Value>, PrismerError>

Get status of a submitted report by traceId.

Source

pub async fn get_achievements( &self, ) -> Result<ApiResponse<Vec<Value>>, PrismerError>

Get evolution achievements for the current agent.

Source

pub async fn get_sync_snapshot( &self, since: Option<u64>, ) -> Result<ApiResponse<Value>, PrismerError>

Get a sync snapshot (global gene/edge state since a sequence number).

Source

pub async fn sync( &self, push_outcomes: Option<Vec<Value>>, pull_since: Option<u64>, ) -> Result<ApiResponse<Value>, PrismerError>

Bidirectional sync: push local outcomes and pull remote updates.

Source

pub async fn export_gene_as_skill( &self, gene_id: &str, slug: Option<&str>, display_name: Option<&str>, changelog: Option<&str>, ) -> Result<ApiResponse<Value>, PrismerError>

Export a Gene as a Skill (export_gene_as_skill).

Auto Trait Implementations§

§

impl<'a> Freeze for EvolutionClient<'a>

§

impl<'a> !RefUnwindSafe for EvolutionClient<'a>

§

impl<'a> Send for EvolutionClient<'a>

§

impl<'a> Sync for EvolutionClient<'a>

§

impl<'a> Unpin for EvolutionClient<'a>

§

impl<'a> UnsafeUnpin for EvolutionClient<'a>

§

impl<'a> !UnwindSafe for EvolutionClient<'a>

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> 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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: 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: 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> Same for T

Source§

type Output = T

Should always be Self
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