JavaScript API Reference

This page provides comprehensive documentation for the AgentInterface JavaScript library.

core

Core functionality for AgentInterface

Classes

AgentInterface

Main class for creating agent interfaces

Constructor
constructor(options?: AgentInterfaceOptions)
Methods
createResponse()

Create a new response object

components

UI components for AgentInterface

Classes

Text

Simple text component

Constructor
constructor(text: string)

Markdown

Markdown component for formatted text

Constructor
constructor(markdown: string)

Button

Interactive button component

Constructor
constructor(options: { text: string, action: string })