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

# Restore Session State • AI Agent SDK

> restore_session_state: Restore team session state for deterministic resume. Returns True if restored.

# restore\_session\_state

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**AgentTeam**](../classes/AgentTeam) class in the [**agents**](../modules/agents) module.

Restore team session state for deterministic resume. Returns True if restored.

Reads first from the durable `SessionStore` keyed by `session_id`
(no fuzzy search, no memory requirement). Falls back to the legacy
`shared_memory` semantic lookup only for sessions written before this
durable path existed, preserving backward compatibility.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def restore_session_state(session_id: str) -> bool
```

## Parameters

<ParamField query="session_id" type="str" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="bool">
  The result of the operation.
</ResponseField>

## Uses

* `get_default_session_store`
* `store.session_exists`
* `store.get_session`
* `logger.debug`
* `search_short_term`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agents/agents.py#L2792">
  `praisonaiagents/agents/agents.py` at line 2792
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Session Management" icon="clock" href="/docs/docs/concepts/session-management" />

  <Card title="Sessions Feature" icon="folder" href="/docs/docs/features/sessions" />

  <Card title="Session Persistence" icon="database" href="/docs/docs/features/session-persistence" />
</CardGroup>
