Skip to main content

Import

Examples

Basic agent

Agent with tools

Agent with materialized runtime tools

Agent with skills

Streaming API route

Multi-agent composition

API

agent(config)

Agent helper. Returns: Agent

agent.generate(input)

Run the agent and return a complete response. Accepts a string or message array as input. Returns: Promise<AgentResponse>

agent.stream(input)

Run the agent and stream the response. Returns a result with .toDataStreamResponse() for API routes. Returns: Promise<AgentStreamResult>

agent.respond(request)

Convert an HTTP request into an AG-UI streaming response for route handlers. Returns: Promise<Response>

agent.getMemory()

Get the agent’s memory instance. Returns: Memory<Message>

agent.getMemoryStats()

Get memory usage statistics (message count, estimated tokens, type). Returns: Promise<{ totalMessages: number; estimatedTokens: number; type: string }>

agent.clearMemory()

Clear all stored messages from memory. Returns: Promise<void>

Exports

Components

Functions

Classes

Types

Constants

Deep imports

These import paths group focused functionality under this module. Each is a separate barrel; import only what you need.

veryfront/agent/identity

Components

Functions

Types

veryfront/agent/testing

Agent Testing Utilities

Components

Functions

Types

Constants