Skip to content
agent-express
Search
Ctrl
K
Cancel
Home
Docs
Blog
Select theme
Dark
Light
Auto
Getting Started
Concepts
Guides
Models
Middleware
Sessions
Structured Output
Streaming
Errors
Observability
Testing
CLI
HTTP & Web Frameworks
Templates
Built-in Middleware
Overview
Guard
Observability
Model
Search & RAG
Memory
Tools & MCP
Development
Presets
Overview
Support Bot
API Reference
http
handler
functions
createHandler
toExpressHandler
toFastifyHandler
interfaces
HandlerOptions
index
classes
AbortError
Agent
AgentExpressError
AgentRun
AuthenticationError
BudgetExceededError
ContentFilterError
ContextOverflowError
EventBus
InputGuardrailError
ModelError
NetworkError
OutputGuardrailError
RateLimitError
Session
SessionBusyError
SessionClosedError
StructuredOutputParseError
StructuredOutputValidationError
ToolDeniedError
ToolExecutionError
TurnTimeoutError
functions
approve
calculateCost
callLanguageModel
countMessageTokens
defaults
deny
fromAiSdkResult
injectionDetector
modify
resolveModel
toAiSdkMessages
toAiSdkTools
interfaces
AgentContext
AgentDef
ApproveConfig
BudgetConfig
Chunk
CompactionConfig
ConsoleEntry
CostRecord
DefaultsOptions
DevConsoleConfig
InjectionDetectorConfig
InputValidationResult
LogEvent
MemoryStoreConfig
Message
MessagePart
MetricEvent
MetricsSnapshot
Middleware
ModelContext
ModelPricing
ModelResponse
ModelRouterConfig
ModelToolCall
ObserveLogOptions
ObserveMetricsOptions
ObserveTracesOptions
OutputGuardConfig
OutputValidationResult
PiiMapping
PiiRedactConfig
RateLimitConfig
RetryConfig
RunOptions
RunResult
SearchFileConfig
SearchResult
SearchWebConfig
SessionContext
SessionData
SessionOptions
SessionStore
SpanData
StateFieldDef
TimeoutConfig
Tool
ToolCallRecord
ToolContext
ToolDef
TurnContext
Usage
type-aliases
AgentHookFn
ApprovalDecision
ApprovalFunction
CompactionStrategy
ComplexityTier
HookScope
InputValidator
McpServerConfig
ModelHookFn
OutputValidator
PiiType
SessionHookFn
StateSchema
StreamEvent
TokenCounter
ToolHookFn
ToolResult
TurnHookFn
variables
DEFAULT_PRICING
defaultTokenCounter
dev
guard
memory
model
observe
search
tools
agent-express
test
classes
FunctionModel
RecordModel
ReplayModel
TestModel
functions
capture
serializeForSnapshot
setAllowRealRequests
testAgent
testSession
toMatchAgentSnapshot
interfaces
CaptureResult
Cassette
CassetteInteraction
CassetteToolDef
FunctionModelToolDef
SnapshotOptions
TestModelOptions
TestOptions
TestResult
TestSessionResult
TurnCapture
type-aliases
FunctionModelHandler
variables
ALLOW_REAL_REQUESTS
Select theme
Dark
Light
Auto
approve
approve
(
opts?
):
ApprovalDecision
Creates an “approve” decision.
Parameters
Section titled “Parameters”
opts?
Section titled “opts?”
remember?
Section titled “remember?”
boolean
Returns
Section titled “Returns”
ApprovalDecision