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
Testing
CLI
HTTP & Web Frameworks
Templates
Features
Overview
Guard
Observability
Model
Memory
Tools & MCP
Development
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
modify
resolveModel
toAiSdkMessages
toAiSdkTools
interfaces
AgentContext
AgentDef
ApproveConfig
BudgetConfig
CompactionConfig
ConsoleEntry
CostRecord
DefaultsOptions
DevConsoleConfig
InputValidationResult
LogEvent
Message
MessagePart
Middleware
ModelContext
ModelPricing
ModelResponse
ModelRouterConfig
ModelToolCall
OutputGuardConfig
OutputValidationResult
RetryConfig
RunOptions
RunResult
SessionContext
SessionOptions
StateFieldDef
TimeoutConfig
Tool
ToolCallRecord
ToolContext
ToolDef
TurnContext
Usage
type-aliases
AgentHookFn
ApprovalDecision
ApprovalFunction
CompactionStrategy
ComplexityTier
HookScope
InputValidator
McpServerConfig
ModelHookFn
OutputValidator
SessionHookFn
StateSchema
StreamEvent
TokenCounter
ToolHookFn
ToolResult
TurnHookFn
variables
DEFAULT_PRICING
defaultTokenCounter
dev
guard
memory
model
observe
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