You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
@@ -41,6 +51,74 @@ export class ThreadsController {
41
51
returnthis.threadsService.findAll();
42
52
}
43
53
54
+
@HttpCode(200)
55
+
@ApiResponse({
56
+
status: 200,
57
+
description: 'A list of message objects.',
58
+
type: ListMessagesResponseDto,
59
+
})
60
+
@ApiOperation({
61
+
summary: 'List messages',
62
+
description: 'Returns a list of messages for a given thread.',
63
+
})
64
+
@ApiParam({
65
+
name: 'id',
66
+
required: true,
67
+
description: 'The ID of the thread the messages belong to.',
68
+
})
69
+
@ApiQuery({
70
+
name: 'limit',
71
+
type: Number,
72
+
required: false,
73
+
description:
74
+
'A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.',
75
+
})
76
+
@ApiQuery({
77
+
name: 'order',
78
+
type: String,
79
+
required: false,
80
+
description:
81
+
'Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.',
82
+
})
83
+
@ApiQuery({
84
+
name: 'after',
85
+
type: String,
86
+
required: false,
87
+
description:
88
+
'A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.',
89
+
})
90
+
@ApiQuery({
91
+
name: 'before',
92
+
type: String,
93
+
required: false,
94
+
description:
95
+
'A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.',
96
+
})
97
+
@ApiQuery({
98
+
name: 'run_id',
99
+
type: String,
100
+
required: false,
101
+
description: 'Filter messages by the run ID that generated them.',
0 commit comments