Retrieve thread
Deprecated
beta.threads.retrieve(thread_id) -> Thread { id, created_at, metadata, 2 more }
GET/threads/{thread_id}
Retrieves a thread.
Parameters
thread_id: String
Returns
Retrieve thread
require "openai"
openai = OpenAI::Client.new(api_key: "My API Key")
thread = openai.beta.threads.retrieve("thread_id")
puts(thread){
"id": "id",
"created_at": 0,
"metadata": {
"foo": "string"
},
"object": "thread",
"tool_resources": {
"code_interpreter": {
"file_ids": [
"string"
]
},
"file_search": {
"vector_store_ids": [
"string"
]
}
}
}Returns Examples
{
"id": "id",
"created_at": 0,
"metadata": {
"foo": "string"
},
"object": "thread",
"tool_resources": {
"code_interpreter": {
"file_ids": [
"string"
]
},
"file_search": {
"vector_store_ids": [
"string"
]
}
}
}