Teams with Memory

Use persistent memory with teams.

The team can also manage user memories, just like agents:

1from kern.team import Team
2from kern.db.sqlite import SqliteDb
3
4db = SqliteDb(db_file="kern.db")
5
6team_with_memory = Team(
7 name="Team with Memory",
8 members=[agent1, agent2],
9 db=db,
10 update_memory_on_run=True,
11)
12
13team_with_memory.print_response("Hi! My name is John Doe.")
14team_with_memory.print_response("What is my name?")

For persistent learning across sessions, use LearningMachine.

See more in the Memory section.

Developer Resources