charmbracelet / charmbracelet/fantasy
Add json type for ToolResponse
Open
Beginner friendly
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
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