计算智能体的预计 LLM 用量

Calculates expected number of LLM tokens needed for the specified agent.

路径参数

agent_idstring必需

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
prompt_lengthinteger or null可选

提示词长度,以字符计。

number_of_pagesinteger or null可选

PDF 文档中的内容页,或智能体知识库中的 URL。

rag_enabledboolean or null可选

是否启用 RAG。

响应

成功响应

llm_priceslist of objects

错误

422
Unprocessable Entity Error