Calculate expected LLM usage

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

Parámetros de ruta

agent_idstringRequerido

Encabezados

xi-api-keystringOpcional

Solicitud

This endpoint expects an object.
prompt_lengthintegerOpcional
Length of the prompt in characters.
number_of_pagesintegerOpcional
Pages of content in pdf documents OR urls in agent's Knowledge Base.
rag_enabledbooleanOpcional
Whether RAG is enabled.

Respuesta

Successful Response
llm_priceslist of objects

Errores

422
Llm Usage Calculate Request Unprocessable Entity Error