---
type: email
from: Subhan Kaladi <notifications@github.com>
subject: [openai/openai-agents-python] get_prompt method does not work (Issue

 #1672)
received: 2026-03-06 07:22:33
date_header: Fri, 05 Sep 2025 05:57:53 -0700
priority: normal
status: awaiting_approval
uid: 29587
---

## Email Content

**From:** Subhan Kaladi <notifications@github.com>
**Subject:** [openai/openai-agents-python] get_prompt method does not work (Issue

 #1672)
**Date:** Fri, 05 Sep 2025 05:57:53 -0700

### Body (preview)

subhankaladi created an issue (openai/openai-agents-python#1672)



**get_prompt method not working** 



my code:



```

import asyncio

from agents import Agent, RunContextWrapper





prompt_agent = Agent(

    name="PromptBot",

    prompt={

    "id": "pmpt_68a223bf2d5.........................",

    "version": "4"

  }

)



async def check_structured_prompt():

    context = RunContextWrapper(context={})

    prompt_param = await prompt_agent.get_prompt(context)

    print(f"Structured prompt: {prompt_param}")



asyncio.run(check_structured_prompt())

```



output:



`Structured prompt: {'id': 'pmpt_68a223bf2d54.........................', 'version': '4', 'variables': None}`



-- 

Reply to this email directly or view it on GitHub:

https://github.com/openai/openai-agents-python/issues/1672

You are receiving this because you are subscribed to this thread.



Message ID: <openai/openai-agents-python/issues/1672@github.com>

---

## Suggested Actions
- [ ] Reply
- [ ] Archive
- [ ] Escalate
