types.ContentToolResult

types.ContentToolResult()

The result of calling a tool/function

This content type isn’t meant to be used directly. Instead, it’s automatically generated by Chat when a tool/function is called (in response to a ContentToolRequest).

Parameters

Name Type Description Default
value The value returned by the tool/function (to be sent to the model). required
error An exception that occurred during the tool request. If this is set, the error message sent to the model and the value is ignored. required
extra Additional data associated with the tool result that isn’t sent to the model. required
request Not intended to be used directly. It will be set when the :class:~chatlas.Chat invokes the tool. required

Methods

Name Description
tagify A method for rendering this object via htmltools/shiny.

tagify

types.ContentToolResult.tagify()

A method for rendering this object via htmltools/shiny.