Skip to content

feat: add ModelContext.waitForToolsUntil() - #20

Open
beaufortfrancois wants to merge 2 commits into
mainfrom
wait-for-tools-until
Open

beaufortfrancois wants to merge 2 commits into
mainfrom
wait-for-tools-until

Conversation

@beaufortfrancois

Copy link
Copy Markdown
Collaborator

Adds waitForToolsUntil(promise) to ModelContext, per webmachinelearning/webmcp#373.

The method lets a document signal that it is asynchronously registering or updating its tools, so tool consumers wait until the promise settles (or a timeout elapses) before reading them.

Includes type tests.

@beaufortfrancois

Copy link
Copy Markdown
Collaborator Author

@MiguelsPizza Hopefully it looks good to you as well.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant