8000 [Bug] Cannot return RunResponse · Issue #3270 · agno-agi/agno · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Bug] Cannot return RunResponse #3270
Open
@anhphong22

Description

@anhphong22

Description

I found a bug when running agent to get RunResponse

Steps to Reproduce

Use Agent.run() and response_model is pydantic Model

Agent Configuration (if applicable)

res: RunResponse = agent.run(
        message=test_output,
        # stream=True
    )

Expected Behavior

Return RunResponse model

Actual Behavior

Image

Screenshots or Logs (if applicable)

No response

Environment

agno==1.5.2

Possible Solutions (optional)

[agno/agent/agent.py](https://github.com/agno-agi/agno/blob/main/libs/agno/agno/agent/agent.py#L924)

                    response = list(
                        self._run(
                            run_response=run_response,
                            run_messages=run_messages,
                            message=message,
                            user_id=user_id,
                            session_id=session_id,
                            response_format=response_format,
                            messages=messages,
                        )
                    )

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0