Skip to content

Syntax for inputs to ToolManager.registerTool #392

Backlog

Description

@khushalsagar

See the discussion thread at https://github.com/webmachinelearning/webmcp/pull/375/changes#r4668817082. Currently there's 2 dictionaries in registerTool but we could switch to a single dictionary. Reiterating my take below:

  • ModelContextTool is all the information about the tool that is serialized and sent to the consumer. execute sits like the soar thumb there.
  • ModelContextRegisterToolOptions is data that stays with the user-agent or in the provider's realm.

Now we have a new naturalLanguageProperties dictionary to further split data required for a user-agent to see the tools. It has everything that's sent to the consumer except name. So its all getting gnarly and I don't know what we're getting with this split anymore. So I'm also leaning towards just one dictionary which has everything.

@domfarolino @jakearchibald what say you? :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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