types.ContentToolRequest
types.ContentToolRequest()A request to call 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 requested by the model assistant.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| id | A unique identifier for this request. | required | |
| name | The name of the tool/function to call. | required | |
| arguments | The arguments to pass to the tool/function. | required | |
| tool | Serializable information about the tool. This is set internally by chatlas’s tool calling loop and contains only the metadata needed for serialization (name, description, parameters, annotations). | required |
Methods
| Name | Description |
|---|---|
| tagify | Returns an HTML string suitable for passing to htmltools/shiny’s Chat() component. |
tagify
types.ContentToolRequest.tagify()Returns an HTML string suitable for passing to htmltools/shiny’s Chat() component.