Skip to content
Discussion options

You must be logged in to vote

input() is only the sample's UI adapter. The workflow contract is the important part: after a request_info event, that workflow run is suspended and must be resumed with a response map keyed by the exact event.request_id.

Returning new_agent_text_message(...) at that point sends an A2A message where Agent Framework is waiting for the declared str response to HumanFeedbackRequest. That is why it reports an unexpected content type.

I would split the integration into two HTTP/A2A turns:

async def collect_pending(stream):
    pending = []
    async for event in stream:
        if (
            event.type == "request_info"
            and isinstance(event.data, HumanFeedbackRequest)
        ):…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Psquare-0
Comment options

You must be logged in to vote
1 reply
@ECD5A
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants