Skip to content

Bug with 02-azureaiagent.ipynb in run_agent_with_visualization() function #143

Closed
@monyoussef

Description

@monyoussef

In 02-explore-agentic-frameworks/code_samples/02-azureaiagent.ipynb

When running the code the user gets an error:

TypeError: AgentsOperations.create_and_process_run() missing 1 required keyword-only argument: 'agent_id'

Need to change the following code from:

        # Execute the run
        run = project_client.agents.create_and_process_run(
            thread_id=thread.id, assistant_id=agent.id)

to

        # Execute the run
        run = project_client.agents.create_and_process_run(
            thread_id=thread.id, agent_id=agent.id)

assistant_id is an invalid parameter

Thanks and great work!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions