Table of Contents

TTMSMCPSamplingMessageContentType Enumeration

Kind of payload a conversation turn carries. smctText is plain text, smctImage and smctAudio are binary data with a media type, smctToolUse is a request from the model to invoke a tool with a set of arguments, and smctToolResult is the outcome of such an invocation sent back to the model.

API unit family: TMS.MCP.Sampling

Members

Name Description
smctText Plain text, carried in the text member of the payload. It is also the kind an unrecognized payload falls back to when it is written out.
smctImage Still image, carried as encoded data with the media type that describes it. Written as image on the wire.
smctAudio Audio clip, carried as encoded data with the media type that describes it. Written as audio on the wire.
smctToolUse Request from the model to invoke a tool. It carries an invocation identifier, the name of the tool and the arguments to call it with, and is written as tool_use on the wire. It only appears when the negotiated revision allows tools during a completion request.
smctToolResult Outcome of a tool invocation returned to the model. It quotes the identifier of the invocation it answers, carries the content the tool produced, and can be marked as a failure. Written as tool_result on the wire.