-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
Description
- Run
pip install agent-framework --pre - Add env variables
AZURE_AI_PROJECT_ENDPOINTandAZURE_AI_MODEL_DEPLOYMENT_NAME - Run the code at azure_ai_basic.py
- See error:
File "agent-framework\azure_ai_basic.py", line 10, in <module>
from agent_framework import tool
ImportError: cannot import name 'tool' from 'agent_framework'. Did you mean: '_tools'?
Code Sample
# These are the imports from the sample:
import asyncio
from random import randint
from typing import Annotated
from agent_framework.azure import AzureAIProjectAgentProvider
from azure.identity.aio import AzureCliCredential
from pydantic import Field
from agent_framework import toolError Messages / Stack Traces
File "agent-framework\azure_ai_basic.py", line 10, in <module>
from agent_framework import tool
ImportError: cannot import name 'tool' from 'agent_framework'. Did you mean: '_tools'? Package Versions
agent-framework v1.0.0b260127
Python Version
3.12.10
Additional Context
No response