charmbracelet / charmbracelet/fantasy

Add json type for ToolResponse

Open Beginner friendly
#227 0 comments 0 reactions 0 assignees View on GitHub
area: tools
Dominant language
Go
Stars
987
Forks
137
Avg merge
14h 41m
Merged PRs (30d)
12

Description

### Description

`ToolResponse.Type` in `tool.go` hasn't json type, which lacks support for structured output of tool result.

Contributor guide

Open the contributing guide

Research direction

Start in tool.go by reading the ToolResponse.Type definition and nearby JSON tags or serialization code. Add the JSON type support described in the issue, then verify that a ToolResponse can represent structured tool output when serialized.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
85/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.