Skip to content

Add ToolActivatedEvent and ToolCancelEvent interfaces - #146

Closed
beaufortfrancois wants to merge 4 commits into
webmachinelearning:executeToolsfrom
beaufortfrancois:events
Closed

Add ToolActivatedEvent and ToolCancelEvent interfaces#146
beaufortfrancois wants to merge 4 commits into
webmachinelearning:executeToolsfrom
beaufortfrancois:events

Conversation

@beaufortfrancois

@beaufortfrancois beaufortfrancois commented Mar 19, 2026

Copy link
Copy Markdown
Collaborator

Following #126 (comment), this PR adds new ToolActivatedEvent and ToolCancelEvent interfaces.


Preview | Diff

Comment thread index.bs
};

dictionary ToolCancelEventInit : EventInit {
DOMString toolName = "";

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at this interface, I'm seeing a potential problem with multiple agents and concurrent activations of the same tool. Which one should be cancelled if all we know is the tool name? I'll comment on the issue.

@beaufortfrancois

Copy link
Copy Markdown
Collaborator Author

@domfarolino Now that #164 has been merged, I guess another one will follow so that I can plug this PR to tool execution. Is that right?

@beaufortfrancois

Copy link
Copy Markdown
Collaborator Author

FYI I've rebased this PR because of conflicts

@beaufortfrancois
beaufortfrancois changed the base branch from main to executeTools August 6, 2026 09:35
@beaufortfrancois
beaufortfrancois marked this pull request as ready for review August 6, 2026 09:51
@domfarolino
domfarolino deleted the branch webmachinelearning:executeTools August 14, 2026 15:06
@domfarolino

Copy link
Copy Markdown
Collaborator

It looks like this closed mistakenly, since it was based off of the executeTools branch which got deleted when #226 landed. Either myself of @beaufortfrancois will get this back up again, based on main.

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.

3 participants