Skip to contents

Describes the R version, operating system, and language and locale settings for the user's system. When using btw_client() or btw_app(), this information is automatically included in the system prompt.

Usage

btw_tool_session_platform_info()

Value

Returns a string describing the user's platform.

Examples

btw_tool_session_platform_info()
#> <btw::BtwSessionInfoToolResult>
#>  @ value  : chr "<system_info>\nR_VERSION: R version 4.5.0 (2025-04-11)\nOS: Ubuntu 24.04.2 LTS\nSYSTEM: x86_64, linux-gnu\nUI: "| __truncated__
#>  @ error  : NULL
#>  @ extra  :List of 9
#>  .. $ r_version:: chr "R version 4.5.0 (2025-04-11)"
#>  .. $ os:       : chr "Ubuntu 24.04.2 LTS"
#>  .. $ system:   : chr "x86_64, linux-gnu"
#>  .. $ ui:       : chr "X11"
#>  .. $ language: : chr "en"
#>  .. $ locale:   : chr "C"
#>  .. $ encoding: : chr "C.UTF-8"
#>  .. $ timezone: : chr "UTC"
#>  .. $ date:     : chr "Tuesday, June  3, 2025 (2025-06-03)"
#>  .. - attr(*, "class")= chr [1:2] "platform_info" "list"
#>  @ request: NULL