Skip to content

coercion error with code -32603 #31

@simonpcouch

Description

@simonpcouch

Currently, seeing:

<simpleError in as.vector(x, "character"): cannot coerce type 'object' to vector of type 'character'>

It's from the session; the message is properly passed on:

TO SESSION: {"method":"tools/call","params":{"name":"btw_tool_env_describe_environment","arguments":{"intent":"Check what data frames are loaded in the current R environment"}},"jsonrpc":"2.0","id":9}

This is because btw tools now return ellmer tool results rather than strings:

btw::btw_tool_env_describe_environment()
<btw::BtwToolResult>
 @ value  : chr [1:5] "## Context" "" ...
 @ error  : NULL
 @ extra  : list()
 @ request: NULL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions