Hi
I’m developing an agent using OpenAI Agents SDK. I want the agent to gather information from the user, e.g. name and identifiication number.
new Agent({
name: “Registration Agent”,
instructions: `You are an agent that helps users register an account.
Collect the following information from the user:
- Name
- Identification Number
`
});
but how can I stop and wait for the user input? For example, I want the user to input name, then the agent will perform validation by calling an API. If the name is valid, continue to ask for identification number and perform another validation. Ask the user to re-enter if the name is invalid.