import type * as _Core from "@osdk/foundry.core"; import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client"; import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2"; import type * as _AipAgents from "../_components.js"; /** * Create a new conversation session between the calling user and an Agent. * Use `blockingContinue` or `streamingContinue` to start adding exchanges to the session. * * @beta * * Required Scopes: [api:aip-agents-write] * URL: /v2/aipAgents/agents/{agentRid}/sessions */ export declare function create($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [ agentRid: _AipAgents.AgentRid, $body: _AipAgents.CreateSessionRequest, $queryParams?: { preview?: _Core.PreviewMode | undefined; } ]): Promise<_AipAgents.Session>; /** * Delete a conversation session between the calling user and an Agent. * Once deleted, the session can no longer be accessed and will not appear in session lists. * * @beta * * Required Scopes: [api:aip-agents-write] * URL: /v2/aipAgents/agents/{agentRid}/sessions/{sessionRid} */ export declare function deleteSession($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [ agentRid: _AipAgents.AgentRid, sessionRid: _AipAgents.SessionRid, $queryParams?: { preview?: _Core.PreviewMode | undefined; } ]): Promise; /** * List all conversation sessions between the calling user and an Agent that was created by this client. * This does not list sessions for the user created by other clients. * For example, any sessions created by the user in AIP Chatbot Studio will not be listed here. * Sessions are returned in order of most recently updated first. * * @beta * * Required Scopes: [api:aip-agents-read] * URL: /v2/aipAgents/agents/{agentRid}/sessions */ export declare function list($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [ agentRid: _AipAgents.AgentRid, $queryParams?: { pageSize?: _Core.PageSize | undefined; pageToken?: _Core.PageToken | undefined; preview?: _Core.PreviewMode | undefined; } ]): Promise<_AipAgents.ListSessionsResponse>; /** * Get the details of a conversation session between the calling user and an Agent. * * @beta * * Required Scopes: [api:aip-agents-read] * URL: /v2/aipAgents/agents/{agentRid}/sessions/{sessionRid} */ export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [ agentRid: _AipAgents.AgentRid, sessionRid: _AipAgents.SessionRid, $queryParams?: { preview?: _Core.PreviewMode | undefined; } ]): Promise<_AipAgents.Session>; /** * Continue a conversation session with an Agent, or add the first exchange to a session after creation. * Adds a new exchange to the session with the provided inputs, and generates a response from the Agent. * Blocks on returning the result of the added exchange until the response is fully generated. * Streamed responses are also supported; see `streamingContinue` for details. * Concurrent requests to continue the same session are not supported. * Clients should wait to receive a response before sending the next message. * * @beta * * Required Scopes: [api:aip-agents-write] * URL: /v2/aipAgents/agents/{agentRid}/sessions/{sessionRid}/blockingContinue */ export declare function blockingContinue($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [ agentRid: _AipAgents.AgentRid, sessionRid: _AipAgents.SessionRid, $body: _AipAgents.BlockingContinueSessionRequest, $queryParams?: { preview?: _Core.PreviewMode | undefined; } ]): Promise<_AipAgents.SessionExchangeResult>; /** * Continue a conversation session with an Agent, or add the first exchange to a session after creation. * Adds a new exchange to the session with the provided inputs, and generates a response from the Agent. * Returns a stream of the Agent response text (formatted using markdown) for clients to consume as the response is generated. * On completion of the streamed response, clients can load the full details of the exchange that was added to the session by reloading the session content. * Streamed exchanges also support cancellation; see `cancel` for details. * Concurrent requests to continue the same session are not supported. * Clients should wait to receive a response, or cancel the in-progress exchange, before sending the next message. * * @beta * * Required Scopes: [api:aip-agents-write] * URL: /v2/aipAgents/agents/{agentRid}/sessions/{sessionRid}/streamingContinue */ export declare function streamingContinue($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [ agentRid: _AipAgents.AgentRid, sessionRid: _AipAgents.SessionRid, $body: _AipAgents.StreamingContinueSessionRequest, $queryParams?: { preview?: _Core.PreviewMode | undefined; } ]): Promise; /** * Cancel an in-progress streamed exchange with an Agent which was initiated with `streamingContinue`. * Canceling an exchange allows clients to prevent the exchange from being added to the session, or to provide a response to replace the Agent-generated response. * Note that canceling an exchange does not terminate the stream returned by `streamingContinue`; clients should close the stream on triggering the cancellation request to stop reading from the stream. * * @beta * * Required Scopes: [api:aip-agents-write] * URL: /v2/aipAgents/agents/{agentRid}/sessions/{sessionRid}/cancel */ export declare function cancel($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [ agentRid: _AipAgents.AgentRid, sessionRid: _AipAgents.SessionRid, $body: _AipAgents.CancelSessionRequest, $queryParams?: { preview?: _Core.PreviewMode | undefined; } ]): Promise<_AipAgents.CancelSessionResponse>; /** * Retrieve relevant [context](https://www.palantir.com/docs/foundry/chatbot-studio/core-concepts/#retrieval-context) for a user message from the data sources configured for the session. * This allows clients to pre-retrieve context for a user message before sending it to the Agent with the `contextsOverride` option when continuing a session, to allow any pre-processing of the context before sending it to the Agent. * * @beta * * Required Scopes: [api:aip-agents-write] * URL: /v2/aipAgents/agents/{agentRid}/sessions/{sessionRid}/ragContext */ export declare function ragContext($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [ agentRid: _AipAgents.AgentRid, sessionRid: _AipAgents.SessionRid, $body: _AipAgents.GetRagContextForSessionRequest, $queryParams?: { preview?: _Core.PreviewMode | undefined; } ]): Promise<_AipAgents.AgentSessionRagContextResponse>; /** * Update the title for a session. * Use this to set a custom title for a session to help identify it in the list of sessions with an Agent. * * @beta * * Required Scopes: [api:aip-agents-write] * URL: /v2/aipAgents/agents/{agentRid}/sessions/{sessionRid}/updateTitle */ export declare function updateTitle($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [ agentRid: _AipAgents.AgentRid, sessionRid: _AipAgents.SessionRid, $body: _AipAgents.UpdateSessionTitleRequest, $queryParams?: { preview?: _Core.PreviewMode | undefined; } ]): Promise; //# sourceMappingURL=Session.d.ts.map