Skip to content

Python: python AG-UI : workflow.as_Agent + AgentFrameworkAgent resume return expected Content, got str #7707

Description

Discussed in #7502

Originally posted by dgsear August 4, 2026

  1. What I'm trying
  • workflow.as_agent exposed via AgentFrameworkAgent
  • AG-UI endpoint(texted on both invocations and FastAPI)
  1. What Works
  • AgentFrameworkWorkflow Path resumes correctly
  1. What fails
  • resume after function_Approval_request on workflow.as_agent path
  • error:Response type mismatch ... expected Content , got str
  1. Repro Summary
  • first run emits interrupt with tool_call id
  • resume with accepted +args payload
  • either APPROVAL_RESUME_INVALID or Content/str mismatch depending on payload shape

5.Questions

  • Is workflow.as_agent + AgentFrameworkAgent expected to support this interrupt/resume path for Content-typed workflow request_info?
  • Or is AgentFrameworkWorkflow the intended adapter for AG-UI workflow resumes?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ag-uiUsage: [Issues, PRs], Target: AG-UI protocol integrationpythonUsage: [Issues, PRs], Target: Python

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions