Skip to content

Python: Need a handoffbuilder workflow as a agent example #2446

@HelloHaiGG

Description

@HelloHaiGG

Can you provide a demo of how to use HandoffBuilder to create a workflow where an agent processes user input requests?

For example:

workflow = (

HandoffBuilder(

name="customer_support_handoff",

participants=[summary_agent, doc_agent, contact_agent, mail_agent],

)

.set_coordinator("meeting_summary_agent")

.enable_return_to_previous(True)

.build()

)


agent = workflow.as_agent()



    while True:
        print(" user: ",user)
        
        async for chunk in agent.run_stream(
            messages=user,
            thread=thread,
        ):  

            ...

Metadata

Metadata

Assignees

Labels

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions