hi team,
I’ve added persistent storage to my team object. I want to add user memory and session summary as well along with session data. But I’m not able to do so. I’m able to save session though but not seeing user memory or session summary.
db_url = "postgresql+psycopg2://Shekhar@localhost:5432/agno"
session_id="9"
storage = PostgresStorage(
table_name="sessions", schema="session", db_url=db_url
)
memory = TeamMemory(
db=PgMemoryDb(
table_name="agent_team_memory",
schema="sessions",
db_url=db_url,
),
user_id="1",
create_user_memories=True,
update_user_memories_after_run=True,
classifier=MemoryClassifier(model=AzureOpenAI(id="gpt-4o"))
)
loan_upselling_team:Team = Team(
name="Loan Upselling team.",
user_id="1",
mode="coordinate",
session_id=session_id,
storage=storage,
memory=memory,
model=AzureOpenAI(id="gpt-4o"),
members=[sales_agent, verification_agent, decision_making_agent],
description="A team of agents handling customer queries and loan processes at Horizon Financial.",
instructions=[
"This is a team of specialized agents at Horizon Financial.",
"Please route the user query to the agent which you think is responsible to handel that particular query"
"The Sales Assistant leads customer interactions and delegates tasks.",
"Collaborate to provide accurate, timely responses to customer queries.",
"Other agent can ask you to gather customer input on their behalf that they need to provide response to customer query.",
"After taking user input, please provide that user input back to that agent which has asked you to gather that from the user."
],
success_criteria="""
Following is the success criteria:
- customer is satisfied with the response and his query is resolved.
- customer has no further query to ask.
- customer no longer wishes to continue the conversation..
- customer is no longer interested in the loan offers.
- customer has filled the loan application form and will be updated later on about the application status.
""",
add_context=True,
add_state_in_messages=True,
add_datetime_to_instructions=True,
enable_agentic_context = True,
share_member_interactions= True,
read_team_history = True,
enable_team_history=True,
show_tool_calls=True,
# # markdown=True,
show_members_responses=True,
# tools = [UserInputToolkit()],
debug_mode=True,
)
Please assist @Monali @monalisha @kausmos @anuragphi