Skip to contents

Tool: Describe an environment

Usage

btw_tool_env_describe_environment(items, .intent = "")

Arguments

items

Optional. A character vector of objects in the environment to describe.

.intent

An optional string describing the intent of the tool use. When the tool is used by an LLM, the model will use this argument to explain why it called the tool.

Value

A string describing the environment contents with #> prefixing each object's printed representation.

Examples

my_cars <- mtcars[mtcars$mpg > 25, ]
 btw_tool_env_describe_environment("my_cars")
#> <btw::BtwToolResult>
#>  @ value  : NULL
#>  @ error  : NULL
#>  @ extra  : list()
#>  @ request: NULL