Product updates
This is the major refactor from phidata
to agno
, released with the official launch of Agno AI.
See the migration guide for additional guidance.
Interface Changes:
-
phi.model.x
→agno.models.x
-
phi.knowledge_base.x
→agno.knowledge.x
(applies to all knowledge bases) -
phi.document.reader.xxx
→agno.document.reader.xxx_reader
(applies to all document readers) -
All Agno toolkits are now suffixed with
Tools
. E.g.DuckDuckGo
→DuckDuckGoTools
-
Multi-modal interface updates:
-
agent.run(images=[])
andagent.print_response(images=[])
is now of typeImage
-
agent.run(audio=[])
andagent.print_response(audio=[])
is now of typeAudio
-
agent.run(video=[])
andagent.print_response(video=[])
is now of typeVideo
-
RunResponse.images
is now a list of typeImageArtifact
-
RunResponse.audio
is now a list of typeAudioArtifact
-
RunResponse.videos
is now a list of typeVideoArtifact
-
RunResponse.response_audio
is now of typeAudioOutput
-
-
Models:
Hermes
→OllamaHermes
AzureOpenAIChat
→AzureOpenAI
CohereChat
→Cohere
DeepSeekChat
→DeepSeek
GeminiOpenAIChat
→GeminiOpenAI
HuggingFaceChat
→HuggingFace
-
Embedders now all take
id
instead ofmodel
as a parameter. For example -
Agent Storage class
PgAgentStorage
→PostgresDbAgentStorage
SqlAgentStorage
→SqliteDbAgentStorage
MongoAgentStorage
→MongoDbAgentStorage
S2AgentStorage
→SingleStoreDbAgentStorage
-
Workflow Storage class
SqlWorkflowStorage
→SqliteDbWorkflowStorage
PgWorkflowStorage
→PostgresDbWorkflowStorage
MongoWorkflowStorage
→MongoDbWorkflowStorage
-
Knowledge Base
phi.knowledge.pdf.PDFUrlKnowledgeBase
→agno.knowledge.pdf_url.PDFUrlKnowledgeBase
phi.knowledge.csv.CSVUrlKnowledgeBase
→agno.knowledge.csv_url.CSVUrlKnowledgeBase
-
Readers
phi.document.reader.arxiv
→agno.document.reader.arxiv_reader
phi.document.reader.docx
→agno.document.reader.docx_reader
phi.document.reader.json
→agno.document.reader.json_reader
phi.document.reader.pdf
→agno.document.reader.pdf_reader
phi.document.reader.s3.pdf
→agno.document.reader.s3.pdf_reader
phi.document.reader.s3.text
→agno.document.reader.s3.text_reader
phi.document.reader.text
→agno.document.reader.text_reader
phi.document.reader.website
→agno.document.reader.website_reader
Improvements:
- Dataclasses - Changed various instances of Pydantic models to dataclasses to improve the speed.
- Moved
Embedder
class from pydantic to data class
Removals
- Removed all references to
Assistant
- Removed all references to
llm
- Removed the
PhiTools
tool
Bug Fixes:
- Fixed semantic chunking by replacing
similarity_threshold
param withthreshold
param