-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Open
Labels
feature:coreneeds-more-infoWaiting for a reply/more info from the authorWaiting for a reply/more info from the authorquestionQuestion about using the SDKQuestion about using the SDK
Description
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}
Metadata
Metadata
Assignees
Labels
feature:coreneeds-more-infoWaiting for a reply/more info from the authorWaiting for a reply/more info from the authorquestionQuestion about using the SDKQuestion about using the SDK