Skip to content

Python: [Bug]: Broken import paths for image analysis fields #3638

@AlPashy

Description

@AlPashy

Description

I am currently using the latest beta versions of agent-framework-core and agent-framework (v1.0.0b260130).

I am encountering an issue with importing the necessary fields for image analysis. Specifically, I am unable to import TextContent and DataContent. It seems the import paths might have changed and I do not find it.

Could you please clarify the correct import statements for these components?

Code Sample

from agent_framework import TextContent, DataContent

Error Messages / Stack Traces

ImportError: cannot import name 'TextContent' from 'agent_framework' (...\dok-agent-research\.venv\Lib\site-packages\agent_framework\__init__.py)

Package Versions

agent-framework-core 1.0.0b260130

Python Version

Python 3.11

Additional Context

No response

Metadata

Metadata

Labels

bugSomething isn't workingpythonv1.0Features being tracked for the version 1.0 GA

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions