> ## Documentation Index
> Fetch the complete documentation index at: https://phidatainc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Basics

> Core learning primitives and default patterns.

| Example                                                                                | Description                                                                                                                                        |
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| [User Profile: Always Mode](/examples/learning/basics/a-user-profile-always)           | ALWAYS mode extracts profile information automatically in parallel while the agent responds - no explicit tool calls needed.                       |
| [User Profile: Agentic Mode](/examples/learning/basics/b-user-profile-agentic)         | AGENTIC mode gives the agent explicit tools to update profile fields.                                                                              |
| [User Memory: Always Mode](/examples/learning/basics/a-user-memory-always)             | ALWAYS mode extracts memories automatically in parallel while the agent responds - no explicit tool calls needed.                                  |
| [User Memory: Agentic Mode](/examples/learning/basics/b-user-memory-agentic)           | AGENTIC mode gives the agent explicit tools to save and update memories.                                                                           |
| [Session Context: Summary Mode](/examples/learning/basics/a-session-context-summary)   | Session Context tracks the current conversation's state: - What's been discussed - Key decisions made - Important context.                         |
| [Session Context: Planning Mode](/examples/learning/basics/b-session-context-planning) | Session Context tracks the current conversation's state: - What's been discussed - Current goals and their status - Active plans and progress.     |
| [Learned Knowledge: Agentic Mode](/examples/learning/basics/learned-knowledge)         | The agent decides when to save and apply learnings.                                                                                                |
| [Entity Memory: Always Mode](/examples/learning/basics/a-entity-memory-always)         | ALWAYS mode automatically extracts entity information from conversations.                                                                          |
| [Entity Memory: Agentic Mode](/examples/learning/basics/b-entity-memory-agentic)       | AGENTIC mode gives the agent search\_entities, create\_entity, add\_fact, add\_event, and add\_relationship tools to track companies and contacts. |
