/** * Palantir AIP (AI Platform) API. * AIP Agents (blockingContinue, streamingContinue, sessions, RAG context) * and Language Model proxy endpoints (OpenAI, Anthropic, xAI, Google). * * All AIP Agents endpoints require `preview=true` query parameter. * Language Models use LLM proxy endpoints at `/api/v2/llm/proxy/`. * * @see https://www.palantir.com/docs/foundry/api/v2/aip-agents-v2-resources/ * @see https://www.palantir.com/docs/foundry/api/v2/llm-proxy/ */ import type { PalantirClient } from "./client.js"; import type { AipAgent, AipAgentSession, AipContinueParams, AipContinueResponse, AipStreamingChunk, LanguageModel, ChatCompletionParams, ChatCompletionResponse, PageResponse, PageParams } from "./types.js"; export declare class AipNamespace { private client; constructor(client: PalantirClient); /** List AIP agents. */ listAgents(params?: PageParams): Promise>; /** Get an AIP agent. */ getAgent(agentRid: string): Promise; /** Create an agent session. */ createSession(agentRid: string, params?: { metadata?: Record; }): Promise; /** Get a session. */ getSession(sessionId: string): Promise; /** List sessions for the current user. */ listSessions(params?: PageParams & { agentRid?: string; }): Promise>; /** * Send a message and wait for the full response (blocking). * Uses agent-centric path: /agents/{agentRid}/sessions/{sessionRid}/blockingContinue * @see https://www.palantir.com/docs/foundry/api/v2/aip-agents-v2-resources/sessions/blocking-continue-session/ */ blockingContinue(agentRid: string, sessionRid: string, params: AipContinueParams): Promise; /** * Send a message and receive streaming response chunks. * Uses agent-centric path: /agents/{agentRid}/sessions/{sessionRid}/streamingContinue * Returns an async iterable of AipStreamingChunk objects. * @see https://www.palantir.com/docs/foundry/api/v2/aip-agents-v2-resources/sessions/streaming-continue-session/ */ streamingContinue(agentRid: string, sessionRid: string, params: AipContinueParams): AsyncGenerator; /** Get the content (messages/exchanges) of a session. */ getContent(agentRid: string, sessionRid: string): Promise; /** * Cancel an in-progress streamed exchange. * @see https://www.palantir.com/docs/foundry/api/v2/aip-agents-v2-resources/sessions/cancel-session/ */ cancel(agentRid: string, sessionRid: string, params?: { messageId?: string; clientResponse?: string; }): Promise; /** List available language models. */ listModels(params?: PageParams): Promise>; /** Get a specific model. */ getModel(modelId: string): Promise; /** * Chat completion via OpenAI-compatible proxy endpoint. * Supports GPT-4, GPT-4o, etc. * Requires scope: `api:use-language-models-execute` */ openaiChatCompletion(params: ChatCompletionParams): Promise; /** * Chat completion via Anthropic-compatible proxy endpoint. * Supports Claude models. * Requires scope: `api:use-language-models-execute` */ anthropicChatCompletion(params: Record): Promise; /** * Chat completion via xAI (Grok) proxy endpoint. * Requires scope: `api:use-language-models-execute` */ xaiChatCompletion(params: ChatCompletionParams): Promise; /** * Chat completion via Google Gemini proxy endpoint. * Requires scope: `api:use-language-models-execute` */ googleChatCompletion(params: Record): Promise; } //# sourceMappingURL=aip.d.ts.map