Skip to content

Response object does not contain all elements #625

@rohitfedup

Description

@rohitfedup

When my prompt gives multiple messages in 1 go.

E.g. via postman

"output": [
{
"id": "msg_....",
"type": "message",
"status": "completed",
"content": [
{
"type": "output_text",
"annotations": [],
"logprobs": [],
"text": "Please wait while I check...."
}
],
"role": "assistant"
},
{
"id": "fs_.....",
"type": "file_search_call",
"status": "completed",
"queries": [
"...."
],
"results": null
},
{
"id": "msg_.....",
"type": "message",
"status": "completed",
"content": [
{
"type": "output_text",
"annotations": [],
"logprobs": [],
"text": "Ok here is what i found...."
}
],
"role": "assistant"
}
]

As you can see in one hit I am getting multiple messages

But in the ResponseOutputItem i am getting only first object; and the other 2 are not coming.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions