Retrieve a specific Operator Version
Response
A specific Language Operator version.
The unique identifier for the Language Operator. Assigned by Twilio (TTID).
Display name of the Language Operator describing its purpose.
Description of the Language Operator further explaining its purpose.
Numeric Operator version. Automatically incremented with each update on the resource, used to ensure integrity when updating the Operator.
The creator and maintainer of the Language Operator.
Available values:
- SELF - Created and maintained by the customer (Custom Operator)
- TWILIO - Created and maintained by Twilio (Twilio-Authored Operator)
The natural language instructions used by the operator to analyze the conversation.
Within the prompt, users can reference parameters using the {{parameters.[param_name]}} syntax. Parameter values are provided to the Operator by the Intelligence Configuration Rule at runtime.
Note: Prompts will only be exposed for Custom Operators (author = SELF). Twilio-authored Operators (author = TWILIO) will have their prompts omitted from the API.
The structure of the result returned by the Language Operator (specific to what the LLM returns, not the entirety of the Operator Result resource).
Available values:
- TEXT: The Operator will return plaintext from the LLM.
- JSON: the Operator will return a structured object with schema defined in output_schema
- CLASSIFICATION: The Operator will return the determined classifier string.
Required for JSON output only. this will be set to a JSON Schema object describing the properties & data types of the response. Please see https://platform.openai.com/docs/guides/structured-outputs#supported-schemas
Will include the following keywords:
- type : Must be set to object
- properties: An object containing the property names and their data types you would like the LLM to return
Additional details on JSON output formatting:
- The root level type of a JSON schema must be set to object
- The following property data types are supported : string, number, boolean, integer, object, array, anyOf
- Definitions with $defs / $ref are supported
- Max 100 object properties and 10 levels of nesting are supported
- Max 1000 enum values across all enum properties are supported
- Notable JSON Schema keywords not supported include:
- For strings: minLength, maxLength
- For objects: patternProperties, unevaluatedProperties, propertyNames, minProperties, maxProperties
- For arrays: unevaluatedItems, contains, minContains, maxContains, uniqueItems
- Structured Operator Results will be returned in the same order as the ordering of keys in the schema
- In the event an Operator execution request is refused for safety reasons the Operator Result API response will include a new field called refusal to indicate that the LLM refused to fulfill the request
- Twilio will automatically set additionalProperties to false and specify all provided fields as required (constraints of Structured Outputs). You don't need to pass these fields as part of your JSON schema. Twilio will automatically overwrite any user-provided values for these fields.
Defines the schema of the parameters that are provided when running the operator, including required and optional values that determine the operator's behavior. The values of the parameters themselves are passed in by the attached Intelligence Configuration.
The lifecycle status of an Operator version.
Available values:
- PREVIEW: Available but restricted to internal/testing visibility. Normal execution.
- ACTIVE: Available for normal use.
- DEPRECATED: Still executes normally, but a Warn event is emitted via the Watch product lifecycle system. Customers should migrate to a newer version.
- RETIRED: Hard failure on execution. An Error is logged in Watch. Customers must manually update their Intelligence Configuration to a valid version.
Timestamp of when this version was created.
Example response
{
"id": "intelligence_operator_01k6fc25s7epm9qtk8rszbv3q5"
}