Skip to content

Conversation

@shaejaz
Copy link
Contributor

@shaejaz shaejaz commented Sep 17, 2025

Summary
Adds client side tool support to React and JS.

React usage:

<Chat
  // ...
  tools={[
    type: 'tool-name',
    component: () => <div>Tool Rendered</div>
  ]}
/>

Javascript usage:

chat({
  // ...
  tools: [
    {
      type: 'tool-name',
      template: {
        component: (_, { html }) => html`<div>Tool rendered</div>`,
      },
    },
  ],
}),

Base automatically changed from feat/js-chat to master September 24, 2025 09:23
@shaejaz shaejaz marked this pull request as ready for review September 24, 2025 09:43
@shaejaz shaejaz requested a review from Haroenv September 24, 2025 12:42
@shaejaz shaejaz changed the base branch from master to feat/fixed-jsdom September 24, 2025 16:06
Copy link
Contributor

@Haroenv Haroenv left a comment

Choose a reason for hiding this comment

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

looks great, thanks!

Base automatically changed from feat/fixed-jsdom to master September 25, 2025 08:50
@shaejaz shaejaz merged commit 268f1f8 into master Sep 25, 2025
14 checks passed
@shaejaz shaejaz deleted the feat/chat-tools branch September 25, 2025 11:03
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.

4 participants