Function: projectAgentModeMessage()
projectAgentModeMessage(
spaceId,content,response,items):object
Project one Agent Mode response snapshot onto the shared Genie message shape.
Parameters
Section titled “Parameters”spaceId
Section titled “spaceId”string
content
Section titled “content”string
response
Section titled “response”conversation_id?
Section titled “conversation_id?”string = ...
created_at?
Section titled “created_at?”number = ...
error?
Section titled “error?”unknown = ...
string = ...
model?
Section titled “model?”string = ...
object?
Section titled “object?”string = ...
output?
Section titled “output?”object[] = ...
status
Section titled “status”string = ...
object[]
Returns
Section titled “Returns”object
attachments?
Section titled “attachments?”
optionalattachments?:object[]
auto_regenerate_count?
Section titled “auto_regenerate_count?”
optionalauto_regenerate_count?:number
content
Section titled “content”content:
string
conversation_id
Section titled “conversation_id”conversation_id:
string
created_timestamp?
Section titled “created_timestamp?”
optionalcreated_timestamp?:number
error?
Section titled “error?”
optionalerror?:object
error.error?
Section titled “error.error?”
optionalerror?:string
error.type?
Section titled “error.type?”
optionaltype?:"BLOCK_MULTIPLE_EXECUTIONS_EXCEPTION"|"CHAT_COMPLETION_CLIENT_EXCEPTION"|"CHAT_COMPLETION_CLIENT_TIMEOUT_EXCEPTION"|"CHAT_COMPLETION_NETWORK_EXCEPTION"|"CONTENT_FILTER_EXCEPTION"|"CONTEXT_EXCEEDED_EXCEPTION"|"COULD_NOT_GET_MODEL_DEPLOYMENTS_EXCEPTION"|"COULD_NOT_GET_UC_SCHEMA_EXCEPTION"|"DEPLOYMENT_NOT_FOUND_EXCEPTION"|"DESCRIBE_QUERY_INVALID_SQL_ERROR"|"DESCRIBE_QUERY_TIMEOUT"|"DESCRIBE_QUERY_UNEXPECTED_FAILURE"|"EXCEEDED_MAX_TOKEN_LENGTH_EXCEPTION"|"FUNCTIONS_NOT_AVAILABLE_EXCEPTION"|"FUNCTION_ARGUMENTS_INVALID_EXCEPTION"|"FUNCTION_ARGUMENTS_INVALID_JSON_EXCEPTION"|"FUNCTION_ARGUMENTS_INVALID_TYPE_EXCEPTION"|"FUNCTION_CALL_MISSING_PARAMETER_EXCEPTION"|"GENERATED_SQL_QUERY_TOO_LONG_EXCEPTION"|"GENERIC_CHAT_COMPLETION_EXCEPTION"|"GENERIC_CHAT_COMPLETION_SERVICE_EXCEPTION"|"GENERIC_SQL_EXEC_API_CALL_EXCEPTION"|"ILLEGAL_PARAMETER_DEFINITION_EXCEPTION"|"INTERNAL_CATALOG_ASSET_CREATION_FAILED_EXCEPTION"|"INTERNAL_CATALOG_ASSET_CREATION_ONGOING_EXCEPTION"|"INTERNAL_CATALOG_ASSET_CREATION_UNSUPPORTED_EXCEPTION"|"INTERNAL_CATALOG_MISSING_UC_PATH_EXCEPTION"|"INTERNAL_CATALOG_PATH_OVERLAP_EXCEPTION"|"INVALID_CERTIFIED_ANSWER_FUNCTION_EXCEPTION"|"INVALID_CERTIFIED_ANSWER_IDENTIFIER_EXCEPTION"|"INVALID_CHAT_COMPLETION_ARGUMENTS_JSON_EXCEPTION"|"INVALID_CHAT_COMPLETION_JSON_EXCEPTION"|"INVALID_COMPLETION_REQUEST_EXCEPTION"|"INVALID_FUNCTION_CALL_EXCEPTION"|"INVALID_SQL_MULTIPLE_DATASET_REFERENCES_EXCEPTION"|"INVALID_SQL_MULTIPLE_STATEMENTS_EXCEPTION"|"INVALID_SQL_UNKNOWN_TABLE_EXCEPTION"|"INVALID_TABLE_IDENTIFIER_EXCEPTION"|"LOCAL_CONTEXT_EXCEEDED_EXCEPTION"|"MESSAGE_ATTACHMENT_TOO_LONG_ERROR"|"MESSAGE_CANCELLED_WHILE_EXECUTING_EXCEPTION"|"MESSAGE_DELETED_WHILE_EXECUTING_EXCEPTION"|"MESSAGE_UPDATED_WHILE_EXECUTING_EXCEPTION"|"MISSING_SQL_QUERY_EXCEPTION"|"NO_DEPLOYMENTS_AVAILABLE_TO_WORKSPACE"|"NO_QUERY_TO_VISUALIZE_EXCEPTION"|"NO_TABLES_TO_QUERY_EXCEPTION"|"RATE_LIMIT_EXCEEDED_GENERIC_EXCEPTION"|"RATE_LIMIT_EXCEEDED_SPECIFIED_WAIT_EXCEPTION"|"REPLY_PROCESS_TIMEOUT_EXCEPTION"|"RETRYABLE_PROCESSING_EXCEPTION"|"SQL_EXECUTION_EXCEPTION"|"STOP_PROCESS_DUE_TO_AUTO_REGENERATE"|"TABLES_MISSING_EXCEPTION"|"TOO_MANY_CERTIFIED_ANSWERS_EXCEPTION"|"TOO_MANY_TABLES_EXCEPTION"|"UNEXPECTED_REPLY_PROCESS_EXCEPTION"|"UNKNOWN_AI_MODEL"|"UNSUPPORTED_CONVERSATION_TYPE_EXCEPTION"|"WAREHOUSE_ACCESS_MISSING_EXCEPTION"|"WAREHOUSE_NOT_FOUND_EXCEPTION"
feedback?
Section titled “feedback?”
optionalfeedback?:object
feedback.rating?
Section titled “feedback.rating?”
optionalrating?:"NEGATIVE"|"NONE"|"POSITIVE"
id:
string
last_updated_timestamp?
Section titled “last_updated_timestamp?”
optionallast_updated_timestamp?:number
message_id
Section titled “message_id”message_id:
string
query_result?
Section titled “query_result?”
optionalquery_result?:object
query_result.is_truncated?
Section titled “query_result.is_truncated?”
optionalis_truncated?:boolean
query_result.row_count?
Section titled “query_result.row_count?”
optionalrow_count?:number
query_result.statement_id?
Section titled “query_result.statement_id?”
optionalstatement_id?:string
query_result.statement_id_signature?
Section titled “query_result.statement_id_signature?”
optionalstatement_id_signature?:string
space_id
Section titled “space_id”space_id:
string
status?
Section titled “status?”
optionalstatus?:"ASKING_AI"|"CANCELLED"|"COMPLETED"|"EXECUTING_QUERY"|"FAILED"|"FETCHING_METADATA"|"FILTERING_CONTEXT"|"PENDING_WAREHOUSE"|"QUERY_RESULT_EXPIRED"|"SUBMITTED"
user_id?
Section titled “user_id?”
optionaluser_id?:number