ModuleNotFoundError using uv #2456
-
|
Hi, im using uv to manage my project´s dependencies. I install agent-framework via:
Then when i try to create a ChatClient and a ChatAgent it throws me this error: File "C:\Users\amunoz\Documents\ISA\IA\Local Agents\CastoresSQL\src\core\model_manager.py", line 2, in This is my code to run it: self.client = OpenAIChatClient(
base_url = MODEL_ENDPOINT,
model_id = MODEL_NAME,
api_key = API_KEY
)
agent = ChatAgent(
chat_client=self.client,
instructions="Tell jokes about pirates"
)
result = await agent.run("Tell me a joke")
print(result.text)`And my pyproject.toml: `[project] [build-system] [tool.setuptools.packages.find] Appreciate any help and comments to have a clean installation using uv. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Hi @Antonio-ISA I am not able to reproduce this issue following what you have here. Can you please provide your entire test script, showing the imports you're using. Additionally, can you please run |
Beta Was this translation helpful? Give feedback.
As we sort this out, you'll want to run
uv pip install agent-framework-core --upgrade