Azure-Samples / Azure-Samples/Azure-Language-OpenAI-Conversational-Agent-Accelerator

Failed container app start due to imports

Open
#53 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
134
Forks
116
PR merge metrics
No merged PRs in 30d

Description

Launching the app based on the environment variable APP_MODE...
Launching app with agents (semantic_kernel_app.py)...
INFO: Started server process [893]
INFO: Waiting for application startup.
ERROR:root:Error during setup: 'AgentsOperations' object has no attribute 'get_agent'
ERROR: Traceback (most recent call last):
File "/mnt/repo/src/backend/src/semantic_kernel_app.py", line 212, in lifespan
await orchestrator.create_agent_group_chat()
File "/mnt/repo/src/backend/src/semantic_kernel_orchestrator.py", line 317, in create_agent_group_chat
created_agents = await self.initialize_agents()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/repo/src/backend/src/semantic_kernel_orchestrator.py", line 255, in initialize_agents
triage_agent_definition = await self.client.agents.get_agent(self.agent_ids["TRIAGE_AGENT_ID"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'AgentsOperations' object has no attribute 'get_agent'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.12/site-packages/starlette/routing.py", line 694, in lifespan
async with self.lifespan_context(app) as maybe_state:
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/contextlib.py", line 210, in __aenter__
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/mnt/repo/src/backend/src/semantic_kernel_app.py", line 224, in lifespan
raise HTTPException(status_code=500, detail="Internal Server Error")
fastapi.exceptions.HTTPException: 500: Internal Server Error

ERROR: Application startup failed. Exiting.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.