Repository navigation
v0.2.0 — New allowedTools option & widget sendMessage() method
@bump-sh/agent-widget
- A new
allowedToolsconfiguration option can be set when initializing a widget to “limit” the available tools for the given Widget
import { Widget } from "@bump-sh/agent-widget"
new Widget({ endpoint: "https://your-host/demo/weather/agent", allowedTools: ["today", "rain", "forecast"] })- A new method is available on an instance of a
Widget:sendMessage(content). This is helpful when you want to programmatically send a message in the widget conversation, for example when opening the widget.
import { Widget } from "@bump-sh/agent-widget"
const widget = new Widget({ endpoint: "https://your-host/demo/weather/agent", mode: "inline", target: document.querySelector("#my-agent-ui") })
// Start a conversation directly
widget.sendMessage("Hi, I'm a friendly user and I need help on how to use this website")- 🐛 minor bug fix on markdown rendering of some LLM models response (which doesn't add a whitespace between markdown heading syntax and the heading title...)
@bump-sh/agent-conversation
The conversation layer allows a new allowedTools configuration option.