Skip to content

Wrong example in README.md #13

Description

@Chi-teck
$greetTool = Tool::make(
    'greet',
    'Greets a person by name',
    ['name' => ['type' => 'string', 'description' => 'Name to greet']],
);
  1. The description argument must go after inputSchema.
  2. The inputSchema array is incomplete according array shape.
$transport = new StdioServerTransport();
  1. Required parameter loop is missing.

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