changedOutput schema / anyOf
Previous value: -[
- {
- "properties": {
- "ai_disclosure": {
- "description": "Whether the AI line is spoken first.",
- "title": "Ai Disclosure",
- "type": "boolean"
- },
- "ai_disclosure_line": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "This agent's AI line template, or null for the workspace line.",
- "title": "Ai Disclosure Line"
- },
- "created_at": {
- "description": "ISO 8601 timestamp.",
- "format": "date-time",
- "title": "Created At",
- "type": "string"
- },
- "email_enabled": {
- "default": true,
- "description": "Whether the agent answers email.",
- "title": "Email Enabled",
- "type": "boolean"
- },
- "first_message": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Opening line, or null to wait.",
- "title": "First Message"
- },
- "handover_contacts": {
- "description": "People the agent may hand a live call to.",
- "items": {
- "$ref": "#/$defs/HandoverContactOut"
- },
- "title": "Handover Contacts",
- "type": "array"
- },
- "handover_max_duration_seconds": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Call limit after a handover contact answers; null means 1800 (30 minutes).",
- "title": "Handover Max Duration Seconds"
- },
- "http_tool_secret": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "Secret that signs this agent's HTTP tool requests (X-Hail-Signature). Returned only when Hail creates it (the first save with HTTP tools) or rotates it (POST /agents/{id}/rotate-tool-secret). Store it then.",
- "title": "Http Tool Secret"
- },
- "http_tools": {
- "description": "Your APIs the agent may call.",
- "items": {
- "$ref": "#/$defs/HttpToolOut"
- },
- "title": "Http Tools",
- "type": "array"
- },
- "id": {
- "description": "Unique identifier for this agent.",
- "format": "uuid",
- "title": "Id",
- "type": "string"
- },
- "knowledge": {
- "default": false,
- "description": "Whether the agent answers from the workspace's knowledge base.",
- "title": "Knowledge",
- "type": "boolean"
- },
- "max_duration_seconds": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Soft cap per call; null means the workspace limit.",
- "title": "Max Duration Seconds"
- },
- "name": {
- "description": "Display name, unique per organization.",
- "title": "Name",
- "type": "string"
- },
- "organization_id": {
- "description": "Organization that owns this agent.",
- "format": "uuid",
- "title": "Organization Id",
- "type": "string"
- },
- "recording_enabled": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "Null inherits the workspace recording choice; true or false sets recording for this agent's calls, whatever the workspace setting.",
- "title": "Recording Enabled"
- },
- "sms_enabled": {
- "description": "Whether the agent answers texts.",
- "title": "Sms Enabled",
- "type": "boolean"
- },
- "status": {
- "description": "'live' or 'paused'.",
- "enum": [
- "live",
- "paused"
- ],
- "title": "Status",
- "type": "string"
- },
- "system_prompt": {
- "description": "Task instructions.",
- "title": "System Prompt",
- "type": "string"
- },
- "tools": {
- "anyOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "description": "Allowed tools; null means all.",
- "title": "Tools"
- },
- "updated_at": {
- "description": "ISO 8601 timestamp.",
- "format": "date-time",
- "title": "Updated At",
- "type": "string"
- },
- "voice_config": {
- "additionalProperties": true,
- "description": "TTS voice and language settings.",
- "title": "Voice Config",
- "type": "object"
- },
- "voice_enabled": {
- "description": "Whether the agent answers calls.",
- "title": "Voice Enabled",
- "type": "boolean"
- }
- },
- "required": [
- "id",
- "organization_id",
- "name",
- "system_prompt",
- "first_message",
- "recording_enabled",
- "ai_disclosure",
- "ai_disclosure_line",
- "voice_config",
- "tools",
- "max_duration_seconds",
- "handover_max_duration_seconds",
- "voice_enabled",
- "sms_enabled",
- "email_enabled",
- "knowledge",
- "status",
- "handover_contacts",
- "http_tools",
- "http_tool_secret",
- "created_at",
- "updated_at"
- ],
- "title": "AgentResponse",
- "type": "object"
- },
- {
- "properties": {
- "error": {
- "type": "string"
- }
- },
- "required": [
- "error"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "properties": {
+ "ai_disclosure": {
+ "description": "Whether the AI line is spoken first.",
+ "title": "Ai Disclosure",
+ "type": "boolean"
+ },
+ "ai_disclosure_line": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "This agent's AI line template, or null for the workspace line.",
+ "title": "Ai Disclosure Line"
+ },
+ "created_at": {
+ "description": "ISO 8601 timestamp.",
+ "format": "date-time",
+ "title": "Created At",
+ "type": "string"
+ },
+ "email_enabled": {
+ "default": true,
+ "description": "Whether the agent answers email.",
+ "title": "Email Enabled",
+ "type": "boolean"
+ },
+ "first_message": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Opening line, or null to wait.",
+ "title": "First Message"
+ },
+ "handover_contacts": {
+ "description": "People the agent may hand a live call to.",
+ "items": {
+ "$ref": "#/$defs/HandoverContactOut"
+ },
+ "title": "Handover Contacts",
+ "type": "array"
+ },
+ "handover_max_duration_seconds": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Call limit after a handover contact answers; null means 1800 (30 minutes).",
+ "title": "Handover Max Duration Seconds"
+ },
+ "http_tool_secret": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Secret that signs this agent's HTTP tool requests (X-Hail-Signature). Returned only when Hail creates it (the first save with HTTP tools) or rotates it (POST /agents/{id}/rotate-tool-secret). Store it then.",
+ "title": "Http Tool Secret"
+ },
+ "http_tools": {
+ "description": "Your APIs the agent may call.",
+ "items": {
+ "$ref": "#/$defs/HttpToolOut"
+ },
+ "title": "Http Tools",
+ "type": "array"
+ },
+ "id": {
+ "description": "Unique identifier for this agent.",
+ "format": "uuid",
+ "title": "Id",
+ "type": "string"
+ },
+ "integration_tools": {
+ "description": "Integration tools turned on for this agent.",
+ "items": {
+ "type": "string"
+ },
+ "title": "Integration Tools",
+ "type": "array"
+ },
+ "knowledge": {
+ "default": false,
+ "description": "Whether the agent answers from the workspace's knowledge base.",
+ "title": "Knowledge",
+ "type": "boolean"
+ },
+ "max_duration_seconds": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Soft cap per call; null means the workspace limit.",
+ "title": "Max Duration Seconds"
+ },
+ "name": {
+ "description": "Display name, unique per organization.",
+ "title": "Name",
+ "type": "string"
+ },
+ "organization_id": {
+ "description": "Organization that owns this agent.",
+ "format": "uuid",
+ "title": "Organization Id",
+ "type": "string"
+ },
+ "recording_enabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Null inherits the workspace recording choice; true or false sets recording for this agent's calls, whatever the workspace setting.",
+ "title": "Recording Enabled"
+ },
+ "sms_enabled": {
+ "description": "Whether the agent answers texts.",
+ "title": "Sms Enabled",
+ "type": "boolean"
+ },
+ "status": {
+ "description": "'live' or 'paused'.",
+ "enum": [
+ "live",
+ "paused"
+ ],
+ "title": "Status",
+ "type": "string"
+ },
+ "system_prompt": {
+ "description": "Task instructions.",
+ "title": "System Prompt",
+ "type": "string"
+ },
+ "tools": {
+ "anyOf": [
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Allowed tools; null means all.",
+ "title": "Tools"
+ },
+ "updated_at": {
+ "description": "ISO 8601 timestamp.",
+ "format": "date-time",
+ "title": "Updated At",
+ "type": "string"
+ },
+ "voice_config": {
+ "additionalProperties": true,
+ "description": "TTS voice and language settings.",
+ "title": "Voice Config",
+ "type": "object"
+ },
+ "voice_enabled": {
+ "description": "Whether the agent answers calls.",
+ "title": "Voice Enabled",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "id",
+ "organization_id",
+ "name",
+ "system_prompt",
+ "first_message",
+ "recording_enabled",
+ "ai_disclosure",
+ "ai_disclosure_line",
+ "voice_config",
+ "tools",
+ "max_duration_seconds",
+ "handover_max_duration_seconds",
+ "voice_enabled",
+ "sms_enabled",
+ "email_enabled",
+ "knowledge",
+ "integration_tools",
+ "status",
+ "handover_contacts",
+ "http_tools",
+ "http_tool_secret",
+ "created_at",
+ "updated_at"
+ ],
+ "title": "AgentResponse",
+ "type": "object"
+ },
+ {
+ "properties": {
+ "error": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+]