Agent Behaviour โ Session Awareness
๐ Agent Behaviour: Session Awareness
This module defines how agents should handle session-aware .llmfeed.json
feeds and manage session continuity across multiple interactions.
Session awareness enables multi-step, stateful interactions between agents and users.
๐๏ธ Identifying Session-Aware Feeds
Agents SHOULD treat feeds containing the session_state
block as session-aware.
Example:
"session_state": {
"session_id": "abc-123-session",
"context": {
"user_preferences": { "language": "en", "timezone": "UTC+2" },
"last_action": "submitted_form"
},
"timestamp": "2025-06-04T15:30:00Z"
}
๐ฆ Agent Behaviour Rules
When processing session-aware feeds:
โ
Agents SHOULD maintain continuity within the same agent instance or session.
โ
Agents SHOULD persist relevant session_state
fields securely.
โ
Agents MAY pass session_state
to other agents if authorized.
โ
Agents MUST update session_state
on significant state changes.
โ
Agents MUST respect privacy and security when storing or transmitting session state.
๐ Use Cases
- Multi-turn conversations (chatbots, voice agents)
- Progressive workflows (forms, booking, verification)
- Session replay (auditing, debugging)
- Cross-agent collaboration (sharing session context)
๐ ๏ธ Example Agent Policy
Agents MAY expose configuration for session handling:
"agent_policy": {
"persist_session_state": true,
"session_timeout_minutes": 30,
"allow_cross_agent_session": false
}
๐ก Summary
Session awareness enables agents to:
โ
Support stateful, multi-step interactions
โ
Provide more personalized and consistent experiences
โ
Enable auditable and explainable behaviour
Proper handling of session_state
is a key capability for building an advanced Agentic Web.