Vapi · Schema

KnowledgeBaseCost

AIVoiceAgentsRealtimeCPaaS

Properties

Name Type Description
type string This is the type of cost, always 'knowledge-base' for this class.
model object This is the model that was used for processing the knowledge base.
promptTokens number This is the number of prompt tokens used in the knowledge base query.
completionTokens number This is the number of completion tokens generated in the knowledge base query.
cost number This is the cost of the component in USD.
View JSON Schema on GitHub

JSON Schema

vapi-knowledgebasecost-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/KnowledgeBaseCost",
  "title": "KnowledgeBaseCost",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "description": "This is the type of cost, always 'knowledge-base' for this class.",
      "enum": [
        "knowledge-base"
      ]
    },
    "model": {
      "type": "object",
      "description": "This is the model that was used for processing the knowledge base."
    },
    "promptTokens": {
      "type": "number",
      "description": "This is the number of prompt tokens used in the knowledge base query."
    },
    "completionTokens": {
      "type": "number",
      "description": "This is the number of completion tokens generated in the knowledge base query."
    },
    "cost": {
      "type": "number",
      "description": "This is the cost of the component in USD."
    }
  },
  "required": [
    "type",
    "model",
    "promptTokens",
    "completionTokens",
    "cost"
  ]
}