Skip to content

AgentGroupChat with AzureAssistantAgent agents and state management #10041

Answered by moonbox3
vslepakov asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @vslepakov, thanks for your question. Are you handling the retrieval in the following manner?

First we create the assistant agent, as an example:

agent = await AzureAssistantAgent.create(
    kernel=kernel,
    service_id=service_id,
    name=AGENT_NAME,
    instructions=AGENT_INSTRUCTIONS,
    enable_code_interpreter=True,
)

Then we can retrieve it using the assistant ID:

assistant_id = agent.assistant.id

# Retrieve the agent using the assistant_id
retrieved_agent: AzureAssistantAgent = await AzureAssistantAgent.retrieve(
    id=assistant_id,
    kernel=kernel,
)

# Define a thread and invoke the agent with the user input
thread_id = await retrieved_agent.create_thread()

try:
    await

Replies: 1 comment 1 reply

Comment options

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

Answer selected by vslepakov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
python Pull requests for the Python Semantic Kernel agents
2 participants