Behaviors

Lists every behavior turned on for your organization, built-in and custom, with the key it's counted under. Use the keys with the other behavior endpoints. Returns an empty list instead of an error when behaviors are off.

get/api/request-logs/behavior-columns/

Request

  • Base URL
    https://api.respan.ai
  • URL
    https://api.respan.ai/api/request-logs/behavior-columns/
  • Auth
    HTTP bearer

Response

The behaviors.

is_span_behaviors_enabledboolean required

Whether behaviors are turned on for the organization.

max_selected_columnsinteger required

Most behaviors one spans list or summary request can ask counts for in behavior_columns.

true_probability_thresholdnumber required

A behavior fires on a span when its latest score is at or above this value.

Example response

{
  "columns": [
    {
      "id": "behavior__instruction_miss",
      "key": "instruction_miss",
      "name": "Instruction Miss",
      "polarity": "negative",
      "type": "boolean",
      "source": "builtin"
    }
  ],
  "is_span_behaviors_enabled": true,
  "max_selected_columns": 20,
  "true_probability_threshold": 0.65
}

Changes

    • breaking

      the response's property format changed from double to no format for status

    • info

      api operation id behaviors_listBehaviors removed and replaced with listBehaviors

    • info

      api tag Behaviors added

    • info

      api tag behaviors removed

    • info

      endpoint added