Building Encrypted Sessions for Secure Agent Memory
Implement encrypted agent sessions for HIPAA and SOC2 compliance using the OpenAI Agents SDK EncryptedSession wrapper with AES-GCM encryption, key management, and TTL expiry.
Step-by-step tutorials on building voice and chat AI agents using OpenAI Agents SDK, Realtime API, function calling, multi-agent orchestration, and production deployment patterns.
9 of 1313 articles
Implement encrypted agent sessions for HIPAA and SOC2 compliance using the OpenAI Agents SDK EncryptedSession wrapper with AES-GCM encryption, key management, and TTL expiry.
Master OpenAIResponsesCompactionSession for automatic and manual compaction of long agent conversations including token management, custom triggers, and compaction strategies.
Build custom session backends for the OpenAI Agents SDK by implementing the SessionABC protocol with complete DynamoDB and MongoDB examples and testing strategies.
Learn how to install the OpenAI Agents SDK, configure your API key, create your first intelligent agent, and run it with Runner.run_sync(). A complete hands-on tutorial.
Master the three execution methods in the OpenAI Agents SDK. Learn when to use async run(), synchronous run_sync(), and streaming run_streamed() with practical code examples.
Learn how to use the @function_tool decorator to give OpenAI agents the ability to call Python functions. Covers type hints, docstrings, timeouts, and Pydantic validation.
Learn how to use Pydantic models with the OpenAI Agents SDK output_type parameter to get type-safe, validated, structured JSON responses from your agents.
Master error handling in the OpenAI Agents SDK. Learn about MaxTurnsExceeded, tool errors, model behavior errors, retry policies, and building resilient agent workflows.