Skip to content

v0.2.0 — New allowedTools option & widget sendMessage() method

Choose a tag to compare

@paulRbr paulRbr released this 30 Sep 09:37
· 27 commits to main since this release
6dc8c55

@bump-sh/agent-widget

  • A new allowedTools configuration 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.