SerenAI

Pay Per Call Agentic Commerce

InvokeTemplateResponse

Response from invoking a template

Properties

PropertyTypeRequiredDescription
cost InvocationCostBreakdown Yes Cost breakdown
executionTimeMs integer Yes Execution time in milliseconds
invocationId string Yes Invocation ID for tracking
result any Yes Output from template execution
View JSON Schema
{
  "type": "object",
  "description": "Response from invoking a template",
  "required": [
    "result",
    "cost",
    "executionTimeMs",
    "invocationId"
  ],
  "properties": {
    "cost": {
      "$ref": "#/components/schemas/InvocationCostBreakdown",
      "description": "Cost breakdown"
    },
    "executionTimeMs": {
      "type": "integer",
      "format": "int32",
      "description": "Execution time in milliseconds"
    },
    "invocationId": {
      "type": "string",
      "format": "uuid",
      "description": "Invocation ID for tracking"
    },
    "result": {
      "description": "Output from template execution"
    }
  }
}