Skip to content

@effect/ai-anthropic: using tool names with slashes (test/mytool) results in an opaque error #5249

@dmaretskyi

Description

@dmaretskyi

What version of Effect is running?

No response

What steps can reproduce the bug?

@effect/ai: 0.22.1
@effect/ai-anthropic 0.12.2

export class TestToolkit extends AiToolkit.make(
  AiTool.make('test/mytool', {
    description: '....',
    parameters: {
      query: Schema.String.annotations({
        description: '...',
      }),
    },
    success: Schema.Unknown,
    failure: Schema.Never,
  }),
) {}

Using anthropic client with this toolkit will throw an opaque http error. This is difficult to debug without tapping into the HTTP client.

What is the expected behavior?

A more specific error message is desired.

What do you see instead?

No response

Additional information

No response

Metadata

Metadata

Assignees

Labels

aibugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions