Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
Upstash Redis state store
Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
export UPSTASH_REDIS_REST_URL=your_url
export UPSTASH_REDIS_REST_TOKEN=your_token
from praisonaiagents import Agent
import os
agent = Agent(
name="Assistant",
instructions="You are a helpful assistant.",
memory={
"backend": "upstash",
"db": os.getenv("UPSTASH_REDIS_REST_URL"),
"session_id": "my-session"
}
)
response = agent.start("Hello!")
print(response)