Scene Query Webservice

Optimize prompt via chat

Optimize a scene query prompt through an interactive chat with Gemini

post/api/scenequery/optimizePromptChat

Request

  • Base URL: https://api2.rhombussystems.com
  • URL: https://api2.rhombussystems.com/api/scenequery/optimizePromptChat
  • Auth: API key in header x-auth-apikey

Headers

x-auth-scheme'api-token' | 'api' | 'partner-api-token' | 'partner-api' required

Authentication scheme identifier. Use api-token for standard API key authentication, partner-api-token for partner API key authentication. Must be paired with the x-auth-apikey header containing your API key.

Request body

currentMessagestring nullable

Current user message

Example request

{
  "context": {
    "deviceFacetUuid": "AAAAAAAAAAAAAAAAAAAAAA.v0"
  }
}

Response

OK

errorboolean nullable
errorCodestring nullable

Stable, machine-readable code for the failure (one of the ApiErrorCode catalog) when error is true. Branch on this, not on errorMsg.

errorMsgstring nullable
explanationstring nullable

Explanation of the optimization

optimizedPromptstring nullable

The optimized prompt

questionForUserstring nullable

Follow-up question for the user, if any

warningMsgstring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.