I am using the API to transcribe videos. After the video is transcribed I pass that transcription to the responses API to create a summary. I have a function tool available that will email that summary. I would like to include in that summary the response ID but so far I have not been successful.
This is the JSON schema:
{
“type”: “function”,
“name”: “email_user”,
“description”: “Emails a user with the given message and logs the top-level OpenAI response ID.”,
“strict”: false,
“parameters”: {
“type”: “object”,
“properties”: {
“emailaddress”: {
“type”: “string”,
“description”: “The user’s email address to send the message to.”
},
“subject”: {
“type”: “string”,
“description”: “The subject of the email.”
},
“body”: {
“type”: “string”,
“description”: “The body/content of the email.”
},
“response_id”: {
“type”: “string”,
“description”: “The top-level OpenAI response ID (e.g., resp_0e4bb2f8fa071f1c0069137922d05081968104467f575f0b74) returned by the API when this message was generated.”
}
},
“required”: [“emailaddress”, “subject”, “body”, “response_id”]
}
}
This is sending a response ID, but it’s made up and not valid.