from agno.agent import Agent
from agno.learn import LearnedKnowledgeConfig, LearningMachine, LearningMode
from agno.models.openai import OpenAIResponses
# Shared learnings store, imported once, used by every agent and team
from agents.settings import team_learnings
analyst = Agent(
name="Financial Analyst",
model=OpenAIResponses(id="gpt-5.5"),
learning=LearningMachine(
knowledge=team_learnings,
learned_knowledge=LearnedKnowledgeConfig(
mode=LearningMode.AGENTIC,
namespace="global",
),
),
)
# Another agent built on the same team_learnings store captures an insight:
risk_officer.print_response("Estimates lag this sector by about a quarter.")
# Later, a different agent reads it back from the shared store:
analyst.learning_machine.learned_knowledge_store.print(query="estimate lag")