Skip to content

Adding the same tool results in a jsonschema: Resolve: root already resolved error #217

@jameslynnwu

Description

@jameslynnwu

Describe the bug
A clear and concise description of what the bug is.

Adding the same tool results in a jsonschema: Resolve: root already resolved error

Despite the code saying that adding the same tool is a noop.

func AddTool[In, Out any](s *Server, t *Tool, h ToolHandlerFor[In, Out]) {

To Reproduce
Steps to reproduce the behavior:

  1. Add the same tool twice to the server

Expected behavior
A clear and concise description of what you expected to happen.
No error should occur.

Logs
If applicable, add logs to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingjsonschemarelease blockerThis issue blocks the release milestone with which it is associated.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions