Translate Text
TranslateText translates a text message to another language within a session. The request must include the session identifier, text to translate, and target language tag.
HTTP Mapping: POST “/v1/conversation/inference/translate”
Request
This endpoint expects an object.
name
name is the resource identifier of the conversation session to join. Example format: “conversations/{conversation}/sessions/{session}”
text
InferenceText is the text to be translated.
languageTag
InferenceLanguage is the language to which the text should be translated.
Response
OK
text
/ InferenceText is the translated text.
languageTag
InferenceLanguage is the language of the translated text.
Errors
400
Bad Request Error