LLM Functions

🔒 #26967 Итог запуска ИИ-функции от пользователя: результат применён (`applied`) или закрыт без применения (`dismissed`). Пишется в журнал расхода; доля применённых видна на странице «ИИ-функции».

#26967 Итог запуска ИИ-функции от пользователя: результат применён (applied) или закрыт без применения (dismissed). Пишется в журнал расхода; доля применённых видна на странице «ИИ-функции».

Access: authorized (10 ) · Scope: write

Allows: не требуются — outcome of the session user's own LLM function run

TypeScript (copy-paste)

POST /llm/outcome

<details open><summary><b>Body</b></summary>
export interface LlmOutcomeBody {
  runID: string
  outcome: llm_outcome_Body_outcome
}
</details> <details open><summary><b>Response</b></summary>
export type LlmOutcomeResponse = IServerResponse<Record<string, any>>

export interface IServerResponse<T = any> {
  code: number
  data: T
  srvTS: number
  rkey: string
}
</details>

Полный файл типов: /docs/types · raw: /docs/api-types.ts

post/llm/outcome

Request

  • Base URL: http://localhost
  • URL: http://localhost/llm/outcome
  • Auth: one of:
    • API key in header sid and API key in header rts and API key in header sig
    • HTTP bearer

Headers

devIDstring uuid required

UUID устройства клиента

tzstring required
Example:Europe/Moscow

Таймзона клиента (IANA или offset)

appstring required
Example:kosmodrom-web

Имя клиентского приложения

appVerstring required
Example:1.0.0

Версия клиента

rKeystring

Уникальный ключ запроса для логов/саппорта

Request body

runIDstring uuid required
outcome'applied' | 'dismissed' required

applied = "applied", dismissed = "dismissed"

Response

OK — IServerResponse<Record<string, any>>

codeinteger required
dataobject required

Response payload (нет ResponseData / doc.schema)

srvTSinteger required

Server timestamp (ms)

rkeystring required

Request key

Example response

{
  "code": 200
}

Changes

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