Skip to content

Add stream output for Agent #833

@Undertone0809

Description

@Undertone0809

🚀 Feature Request

Current, ToolAgent cannot use stream mode output. As a ReAct prompt pattern, the intermediate thought steps need to be output. Now we use hooks system to extract middle step, but agent.run(..., stream=True) is simpler.

How to do?

Add stream parameter, use agent.run(..., stream=True).

Reference: https://github.com/InternLM/MindSearch/blob/main/mindsearch/agent/mindsearch_agent.py#L196

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions