Skip to content

[Discussion] How can an agent returns streamable values #69

@MagnusLeona

Description

@MagnusLeona

Checking the trait Agent:

pub trait Agent: Send + Sync {
/// Runs the autonomous agent loop to complete the given task.
fn run(&self, task: String) -> BoxFuture<Result<String, AgentError>>;
}

It simply provides only one method 'run' which returns str; How can I define an agent which returns streamable values?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions