Get Agent Session chat messages
get
/20260430/aiDataPlatforms/{aiDataPlatformId}/workspaces/{workspaceKey}/agents/{agentKey}/sessions/{sessionId}/chatHistory
Returns list of Agent Session chat messages.
Request
Path Parameters
-
agentKey(required): string
The UUID of the Agent
-
aiDataPlatformId(required): string
Minimum Length:
1Maximum Length:500The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the AI Data Platform (Data Lake) instance. -
sessionId(required): string
The UUID of the Agent Session
-
workspaceKey(required): string
Minimum Length:
1Maximum Length:200The key of the Workspace
Query Parameters
-
limit: integer
Minimum Value:
1Maximum Value:1000For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine).Default Value:100 -
page: string
Maximum Length:
1024For list pagination. The value of the opc-next-page response header from the previous "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine).
Header Parameters
-
opc-request-id: string
Maximum Length:
255Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.
Response
Supported Media Types
- application/json
200 Response
Successful operation
Headers
-
opc-next-page: string
For pagination of a list of items. When paging through a list, if this header appears in the response, then a partial list might have been returned. Include this value as the `page` parameter for the subsequent GET request to get the next batch of items.
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : SessionChatHistoryCollection
Type:
objectA paginated collection of chat messages.
Show Source
-
items(required):
array items
Collection of chat messages
Nested Schema : items
Type:
arrayCollection of chat messages
Show Source
-
Array of:
object SessionChatHistorySummary
A single message in a chat session history. Does not include internal state.
Nested Schema : SessionChatHistorySummary
Type:
objectA single message in a chat session history. Does not include internal state.
Show Source
-
content(required):
array content
Message content.
-
key(required):
string
Unique identifier for the message.
-
metadata:
object metadata
Additional Properties Allowed: additionalPropertiesOptional key-value metadata associated with the message
-
role(required):
string
Role associated with the message, such as user, assistant, system, or tool.
-
sessionKey(required):
string
Identifier of the chat session this message belongs to.
-
timeCreated(required):
string(date-time)
Time the message was created.
-
toolCallId:
string
Identifier of the tool call, if applicable.
-
toolName:
string
Name of the tool, if this is a tool message.
Nested Schema : content
Type:
arrayMessage content.
Show Source
-
Array of:
object ChatMessage
The content of the chat query sent by the user.
Nested Schema : metadata
Type:
objectAdditional Properties Allowed
Show Source
Optional key-value metadata associated with the message
Nested Schema : ChatMessage
Type:
objectThe content of the chat query sent by the user.
Show Source
-
fileUrl:
string
File URL for the image user intends to query. Set this parameter when type is input_file.
-
imageUrl:
string
Image URL for the image user intends to query. Set this parameter when type is input_image.
-
text:
string
Maximum Length:
1048576Text input from the user. Set this parameter when type is input_text. -
type(required):
string
Allowed Values:
[ "INPUT_TEXT", "INPUT_IMAGE", "INPUT_FILE" ]Type of input.
Nested Schema : additionalProperties
Type:
object400 Response
Bad Request (invalid query parameters, malformed headers, and so on).
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
401 Response
Unauthorized (missing or expired credentials, and so on).
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
404 Response
Not Found. The requested resource was not found.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
429 Response
Too Many Requests. Too many requests sent to the server in a short period.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
500 Response
Internal Server Error. The server encountered an unexpected condition preventing fulfilment of the request.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
Default Response
Unknown Error. Error is not recognized by the system.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.