AI

CopilotSkill

Pulumi Copilot skill handler for AI-powered operations.

The endpoint accepts CopilotRequest with a directSkillCall field specifying which skill to invoke and its parameters.

Example request for explainPreview skill: { "query": "...", "state": { "client": { "cloudContext": { "orgId": "my-org", "url": "https://app.pulumi.com" } } }, "directSkillCall": { "skill": "explainPreview", "params": { "pulumiPreviewOutput": "...", "previewDetails": { "kind": "update" }, "displayContext": "cli" } } }

post/api/ai/chat/preview

Request

  • Base URL: https://api.pulumi.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.pulumi.com/api/ai/chat/preview
  • Auth: none declared

Request body

querystring

Optional query string (rarely used for direct skill calls)

Response

OK

detailsstring

Additional error context or debugging information

errorstring

Error message if the request failed

Changes

No recorded changes to this operation across all 1 revision of this API.