laguagu/claude-code-nextjs-skills / skills/openai-agents-sdk
openai-agents-sdk
VerifiedOpenAI Agents SDK (Python) development. Use when building AI agents, multi-agent handoffs, function tools, guardrails, sessions, streaming, or tracing with the `openai-agents` / `agents` Python package — including Azure OpenAI through its native client or LiteLLM. Triggers on imports from `agents`, uses of `Runner.run_sync`/`Runner.run_streamed`, `@function_tool`, `AgentOutputSchema`, `SQLiteSession`, or questions about the openai-agents-python SDK. Python only — not the TypeScript `@openai/agents` SDK.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 5.9 KB |
| references/guardrails.md | markdown | 1.8 KB |
| references/handoffs.md | markdown | 1.4 KB |
| references/patterns.md | markdown | 1.5 KB |
| references/providers.md | markdown | 2.8 KB |
| references/sandbox.md | markdown | 1.5 KB |
| references/sessions.md | markdown | 1.6 KB |
| references/streaming.md | markdown | 1.5 KB |
| references/structured-output.md | markdown | 838 B |
| references/tools.md | markdown | 3.0 KB |
references/sessions.md
View on GitHub# History ownership and sessions
Choose one conversation-history owner: application-managed input, an SDK session
or provider-managed Responses conversation state. Combining owners can duplicate
history or replay already-executed operations. In 0.24.0, `session=` combined
with `conversation_id`, `previous_response_id` or `auto_previous_response_id`
raises `UserError`. Application-managed history uses `result.to_input_list()`;
Responses-managed history sends only the new turn with the conversation ID
or `result.last_response_id`.
Use the installed session implementations for the actual storage/runtime.
SQLite fits local/single-instance storage; a supported SQL/Redis store may fit
distributed persistence. Session IDs need server-side ownership checks and
appropriate tenant scoping. A database row is not automatically durable workflow
state.
Persist replay-valid SDK input/items, including required tool-call/result and
reasoning context. Compaction, branching and encryption wrappers have their own
semantics; read the relevant adapter before introducing them.
`EncryptedSession` defaults to `ttl=600` seconds (verified in 0.24.0); expired
items are skipped when read. Configure retention intentionally. Encryption at
rest does not encrypt provider requests or trace uploads.
Define deletion/retention across application history, hosted conversation state,
logs and backups when those are in scope.
Read [sessions](https://openai.github.io/openai-agents-python/sessions/)
and [running agents](https://openai.github.io/openai-agents-python/running_agents/)
for compatible history/resume examples.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |