Create session
AI-generatedSummary
Create a new session on the specified OCI Generative AI Agent Endpoint.
Inputs
- agentEndpointId (required) — The OCID of the Generative AI Agent Endpoint to use
- displayName — The display name for the new session
- description — The description for the new session
Output shape
The created session object (resp.session) from the SDK, or the raw SDK response if no session property is present.
Empty displayName or description are passed as undefined to the SDK, effectively omitting those fields from the API request.
Examples
Example 1: Basic session creation
Set Agent Endpoint OCID; optionally set Display Name and Description.