Skip to main content

BusMessage

Enum BusMessage 

Source
pub enum BusMessage {
Show 18 variants AgentReady { agent_id: String, capabilities: Vec<String>, }, AgentShutdown { agent_id: String, }, AgentMessage { from: String, to: String, parts: Vec<Part>, }, TaskUpdate { task_id: String, state: TaskState, message: Option<String>, }, ArtifactUpdate { task_id: String, artifact: Artifact, }, SharedResult { key: String, value: Value, tags: Vec<String>, }, ToolRequest { request_id: String, agent_id: String, tool_name: String, arguments: Value, }, ToolResponse { request_id: String, agent_id: String, tool_name: String, result: String, success: bool, }, Heartbeat { agent_id: String, status: String, }, RalphLearning { prd_id: String, story_id: String, iteration: usize, learnings: Vec<String>, context: Value, }, RalphHandoff { prd_id: String, from_story: String, to_story: String, context: Value, progress_summary: String, }, RalphProgress { prd_id: String, passed: usize, total: usize, iteration: usize, status: String, }, ToolOutputFull { agent_id: String, tool_name: String, output: String, success: bool, step: usize, }, AgentThinking { agent_id: String, thinking: String, step: usize, }, VoiceSessionStarted { room_name: String, agent_id: String, voice_id: String, }, VoiceTranscript { room_name: String, text: String, role: String, is_final: bool, }, VoiceAgentStateChanged { room_name: String, state: String, }, VoiceSessionEnded { room_name: String, reason: String, },
}
Expand description

The set of messages the bus can carry.

Variants§

§

AgentReady

An agent has come online and is ready to receive work

Fields

§agent_id: String
§capabilities: Vec<String>
§

AgentShutdown

An agent is shutting down

Fields

§agent_id: String
§

AgentMessage

Free-form message from one agent to another (mirrors A2A Message)

Fields

§from: String
§parts: Vec<Part>
§

TaskUpdate

Task status changed

Fields

§task_id: String
§message: Option<String>
§

ArtifactUpdate

A new artifact was produced for a task

Fields

§task_id: String
§artifact: Artifact
§

SharedResult

A sub-agent published a shared result (replaces raw ResultStore publish)

Fields

§value: Value
§tags: Vec<String>
§

ToolRequest

Tool execution request (for shared tool dispatch)

Fields

§request_id: String
§agent_id: String
§tool_name: String
§arguments: Value
§

ToolResponse

Tool execution response

Fields

§request_id: String
§agent_id: String
§tool_name: String
§result: String
§success: bool
§

Heartbeat

Heartbeat (keep-alive / health signal)

Fields

§agent_id: String
§status: String
§

RalphLearning

An agent shares learnings from a Ralph iteration (insights, blockers, patterns discovered) so subsequent iterations or co-ordinating agents can build on them.

Fields

§prd_id: String
§story_id: String
§iteration: usize
§learnings: Vec<String>
§context: Value
§

RalphHandoff

Context handoff between sequential Ralph stories. The finishing story publishes what the next story should know.

Fields

§prd_id: String
§from_story: String
§to_story: String
§context: Value
§progress_summary: String
§

RalphProgress

PRD-level progress update (aggregated across all stories).

Fields

§prd_id: String
§passed: usize
§total: usize
§iteration: usize
§status: String
§

ToolOutputFull

Full, untruncated tool output from an agent loop step. Published before the result is truncated for the LLM context window, so other agents and the bus log see the complete output.

Fields

§agent_id: String
§tool_name: String
§output: String
§success: bool
§step: usize
§

AgentThinking

Internal reasoning / chain-of-thought from an agent step. Published so the training pipeline captures the model’s thinking process alongside its actions.

Fields

§agent_id: String
§thinking: String
§step: usize
§

VoiceSessionStarted

A voice session (LiveKit room) has been created.

Fields

§room_name: String
§agent_id: String
§voice_id: String
§

VoiceTranscript

A transcript fragment from a voice session.

Fields

§room_name: String
§text: String
§role: String

“user” or “agent”

§is_final: bool
§

VoiceAgentStateChanged

The voice agent’s state changed (e.g. listening, thinking, speaking).

Fields

§room_name: String
§state: String
§

VoiceSessionEnded

A voice session has ended.

Fields

§room_name: String
§reason: String

Trait Implementations§

Source§

impl Clone for BusMessage

Source§

fn clone(&self) -> BusMessage

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
Source§

impl Debug for BusMessage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for BusMessage

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for BusMessage

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. 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> 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> 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
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: 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> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

Source§

fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>

Source§

impl<T> ServiceExt for T

Source§

fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>
where Self: Sized,

Apply a transformation to the response body. Read more
Source§

fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>
where Self: Sized,

High level tracing that classifies responses using HTTP status codes. Read more
Source§

fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>
where Self: Sized,

High level tracing that classifies responses using gRPC headers. Read more
Source§

fn follow_redirects(self) -> FollowRedirect<Self>
where Self: Sized,

Follow redirect resposes using the Standard policy. Read more
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
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,