A11 TypeScript API - v0.2.1
A11 guides
Python API
C++ internals
Preparing search index...
A11 TypeScript API - v0.2.1
Public TypeScript surface for building A11 browser and Node agents.
Enumerations
Backend
BytePacketType
ChannelEndpointRole
InvalidStatusAccessBehaviour
LlmHeaders
NormalizedContentType
Role
SignallingMessageType
StatusCode
StreamMode
TurnRelayType
Classes
AbortedException
Action
ActionHeaderSchema
ActionMessage
ActionPortSchema
ActionRegistry
ActionSchema
AlreadyExistsException
AsyncNode
ByteReassembler
CancelledException
ChannelWireStream
Chunk
ChunkMetadata
ChunkStoreReader
ChunkStoreWriter
DataLossException
DeadlineExceededException
FailedPreconditionException
HttpSseClientWireStream
InProcessWireStream
InternalException
InvalidArgumentException
LocalChunkStore
NodeFragment
NodeMap
NodeRef
NotFoundException
OutOfRangeException
PermissionDeniedException
Port
ResourceExhaustedException
SerializationRegistry
Session
SessionWithRecv
SignallingMessage
StatusException
ToolAdapter
TurnServer
UnauthenticatedException
UnavailableException
UnimplementedException
UnknownException
WebRtcWireStream
WebSocketSignallingClient
WebSocketWireStream
WireMessage
WireStreamWithRecv
Interfaces
AbortedError
ActionCall
ActionCreateOptions
ActionHeaderSchemaOptions
ActionMessageOptions
ActionPortSchemaOptions
ActionRegistryLike
ActionSchemaOptions
ActionSessionContext
ActionSettings
AlreadyExistsError
AsyncNodeOptions
BinaryChannel
BinaryChannelCallbacks
ByteChunkingOptions
BytePacket
CancelledError
ChannelFramingOptions
ChunkMetadataOptions
ChunkOptions
ChunkStore
ChunkStoreReaderOptions
ChunkStoreWrite
ChunkStoreWriterOptions
DataLossError
DeadlineExceededError
DecodedStatus
FailedPreconditionError
GemmaEngine
HttpSseOptions
InternalError
InvalidArgumentError
MakeActionOptions
NodeFragmentOptions
NodeRefOptions
NonOkStatus
NormalizedByteChunkingOptions
NormalizedChannelFramingOptions
NormalizedMessage
NormalizedPart
NormalizedSessionOptions
NormalizedWireStreamOptions
NotFoundError
OkStatus
OutOfRangeError
PermissionDeniedError
ReceivedSessionMessage
ResourceExhaustedError
SerializationCodec
SessionCreateOptions
SessionOptions
SignallingMessageOptions
SignallingTransport
StatusJson
ToolDefinition
TurnServerOptions
UnauthenticatedError
UnavailableError
UnimplementedError
UnknownError
WebRtcConfiguration
WebSocketClientOptions
WebSocketLike
WebSocketSignallingClientOptions
WireMessageOptions
WireStream
WireStreamOptions
WritableWireStream
Type Aliases
A11ActionConfig
A11Peer
ActionHandler
AsyncByteSource
ByteMap
ByteMapInput
ByteSource
ChunkStoreFactory
ClaudeCreateMessageConfig
Deadline
FetchFunction
GeminiCreateInteractionConfig
GeminiStateMode
GemmaConfig
GemmaEngineFactory
HttpHeaders
Interaction
InteractionNormalizer
OllamaCreateChatConfig
OnActionCancelled
OnSessionStreamDone
OnSessionStreamMessage
OnSignallingMessage
OnWireDone
OnWireMessage
PeerConnectionFactory
PortValueSchemas
SerializedData
Status
StatusOr
UsageMetadata
WebSocketFactory
WireDeadline
Variables
a11ActionConfigSchema
a11PeerSchema
ABORT_STATUS_HEADER
ACTION_DISPATCH_STATUS_OUTPUT
ACTION_HEADER_PREFIX
ACTION_STATUS_MIMETYPE
ACTION_STATUS_OUTPUT
BACKEND_METADATA_KEY
CANCEL_ACTION_HEADER
CANCEL_ACTION_NAME
CLAUDE_DEFAULT_MODEL
claudeCreateMessageConfigSchema
DEFAULT_MODEL
DEFAULT_MODEL_ASSET_PATH
DEFAULT_ROLE
DEFAULT_SSE_CONNECT_ENDPOINT
DEFAULT_SSE_MESSAGE_ENDPOINT
DEFAULT_STOP_SEQUENCES
GEMINI_DEFAULT_MODEL
geminiCreateInteractionConfigSchema
geminiStateModeSchema
gemmaConfigSchema
GLOBAL_WEBRTC_SIGNALLING_ENDPOINT
INTERACT_WITH_GEMMA_SCHEMA
INTERACT_WITH_LLM_SCHEMA
JSON_MIMETYPE
MAX_SINGLE_MESSAGE_SIZE
MAX_SINGLE_WIRE_MESSAGE_SIZE
MINIMUM_BYTE_PACKET_SIZE
MODEL_CACHE_NAME
MSGPACK_MIMETYPE
OCTET_STREAM_MIMETYPE
OLLAMA_DEFAULT_MODEL
ollamaCreateChatConfigSchema
SESSION_STATUS_HEADER
SSE_HTTP_HEADER_PREFIX
SSE_STREAM_ID_HEADER
usageMetadataSchema
WHOLE_JSON_OUTPUT
Functions
a11PeerFromString
a11PeerToString
abortedError
actionNameMatchesAllowed
alreadyExistsError
base64Decode
base64Encode
cancelledError
cloneChunk
cloneFragment
concatBytes
copyByteMap
dataLossError
deadlineExceededError
decodeStatus
decodeStatusChunk
executeActionsFromInteraction
failedPreconditionError
fetchModelAssetBuffer
fromChunk
getAllowedLlmActionPatterns
getError
getGlobalSerializationRegistry
getStatusAndValue
getToolDefinitions
getValue
hasChunkStoreShape
interactionBackend
interactWithGemma
interactWithLlm
internalError
invalidArgumentError
invokeWireCallback
isAbortedError
isAlreadyExistsError
isCancelledError
isDataLossError
isDeadlineExceededError
isFailedPreconditionError
isInternalError
isInvalidArgumentError
isNotFoundError
isOk
isOutOfRangeError
isPermissionDeniedError
isResourceExhaustedError
isStatus
isStatusChunk
isUnauthenticatedError
isUnavailableError
isUnimplementedError
isUnknownError
makeHalfCloseMessage
makeInteraction
makeNullChunk
makeTextMessageInteraction
noexcept
noexceptFetch
normalizeByteChunkingOptions
normalizeByteMap
normalizeChannelFramingOptions
normalizeInteraction
normalizeSessionHeaders
normalizeSessionOptions
normalizeWireHeaders
normalizeWireStreamOptions
notFoundError
okStatus
organiseAndDeduplicateJsonschema
outOfRangeError
packStatus
parseBytePacket
parseInteraction
permissionDeniedError
randomId
registerInteractionNormalizer
resetGemmaEngineFactory
resourceExhaustedError
setGemmaEngineFactory
setGlobalSerializationRegistry
splitBytesIntoPackets
statusCodeFromHttp
statusCodeFromWebSocket
statusCodeToWebSocket
statusFromChunk
statusFromJson
statusFromResponse
statusFromUnknown
statusToChunk
statusToJson
terminate
throwForError
toBytes
toBytesAsync
toChunk
unauthenticatedError
unavailableError
unimplementedError
unknownError
unpackStatus
utf8Decode
utf8Encode
validateA11Peer
validateName
valueOrTerminate
valueOrThrow
wireDeadlineMillis
wireMessageFromJsonValue
wireMessageToJsonValue
zodParse
zodToJsonSchema
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Enumerations
Backend
Byte
Packet
Type
Channel
Endpoint
Role
Invalid
Status
Access
Behaviour
Llm
Headers
Normalized
Content
Type
Role
Signalling
Message
Type
Status
Code
Stream
Mode
Turn
Relay
Type
Classes
Aborted
Exception
Action
Action
Header
Schema
Action
Message
Action
Port
Schema
Action
Registry
Action
Schema
Already
Exists
Exception
Async
Node
Byte
Reassembler
Cancelled
Exception
Channel
Wire
Stream
Chunk
Chunk
Metadata
Chunk
Store
Reader
Chunk
Store
Writer
Data
Loss
Exception
Deadline
Exceeded
Exception
Failed
Precondition
Exception
Http
Sse
Client
Wire
Stream
In
Process
Wire
Stream
Internal
Exception
Invalid
Argument
Exception
Local
Chunk
Store
Node
Fragment
Node
Map
Node
Ref
Not
Found
Exception
Out
Of
Range
Exception
Permission
Denied
Exception
Port
Resource
Exhausted
Exception
Serialization
Registry
Session
Session
With
Recv
Signalling
Message
Status
Exception
Tool
Adapter
Turn
Server
Unauthenticated
Exception
Unavailable
Exception
Unimplemented
Exception
Unknown
Exception
Web
Rtc
Wire
Stream
Web
Socket
Signalling
Client
Web
Socket
Wire
Stream
Wire
Message
Wire
Stream
With
Recv
Interfaces
Aborted
Error
Action
Call
Action
Create
Options
Action
Header
Schema
Options
Action
Message
Options
Action
Port
Schema
Options
Action
Registry
Like
Action
Schema
Options
Action
Session
Context
Action
Settings
Already
Exists
Error
Async
Node
Options
Binary
Channel
Binary
Channel
Callbacks
Byte
Chunking
Options
Byte
Packet
Cancelled
Error
Channel
Framing
Options
Chunk
Metadata
Options
Chunk
Options
Chunk
Store
Chunk
Store
Reader
Options
Chunk
Store
Write
Chunk
Store
Writer
Options
Data
Loss
Error
Deadline
Exceeded
Error
Decoded
Status
Failed
Precondition
Error
Gemma
Engine
Http
Sse
Options
Internal
Error
Invalid
Argument
Error
Make
Action
Options
Node
Fragment
Options
Node
Ref
Options
Non
Ok
Status
Normalized
Byte
Chunking
Options
Normalized
Channel
Framing
Options
Normalized
Message
Normalized
Part
Normalized
Session
Options
Normalized
Wire
Stream
Options
Not
Found
Error
Ok
Status
Out
Of
Range
Error
Permission
Denied
Error
Received
Session
Message
Resource
Exhausted
Error
Serialization
Codec
Session
Create
Options
Session
Options
Signalling
Message
Options
Signalling
Transport
Status
Json
Tool
Definition
Turn
Server
Options
Unauthenticated
Error
Unavailable
Error
Unimplemented
Error
Unknown
Error
Web
Rtc
Configuration
Web
Socket
Client
Options
Web
Socket
Like
Web
Socket
Signalling
Client
Options
Wire
Message
Options
Wire
Stream
Wire
Stream
Options
Writable
Wire
Stream
Type Aliases
A11
Action
Config
A11
Peer
Action
Handler
Async
Byte
Source
Byte
Map
Byte
Map
Input
Byte
Source
Chunk
Store
Factory
Claude
Create
Message
Config
Deadline
Fetch
Function
Gemini
Create
Interaction
Config
Gemini
State
Mode
Gemma
Config
Gemma
Engine
Factory
Http
Headers
Interaction
Interaction
Normalizer
Ollama
Create
Chat
Config
On
Action
Cancelled
On
Session
Stream
Done
On
Session
Stream
Message
On
Signalling
Message
On
Wire
Done
On
Wire
Message
Peer
Connection
Factory
Port
Value
Schemas
Serialized
Data
Status
Status
Or
Usage
Metadata
Web
Socket
Factory
Wire
Deadline
Variables
a11
Action
Config
Schema
a11
Peer
Schema
ABORT_
STATUS_
HEADER
ACTION_
DISPATCH_
STATUS_
OUTPUT
ACTION_
HEADER_
PREFIX
ACTION_
STATUS_
MIMETYPE
ACTION_
STATUS_
OUTPUT
BACKEND_
METADATA_
KEY
CANCEL_
ACTION_
HEADER
CANCEL_
ACTION_
NAME
CLAUDE_
DEFAULT_
MODEL
claude
Create
Message
Config
Schema
DEFAULT_
MODEL
DEFAULT_
MODEL_
ASSET_
PATH
DEFAULT_
ROLE
DEFAULT_
SSE_
CONNECT_
ENDPOINT
DEFAULT_
SSE_
MESSAGE_
ENDPOINT
DEFAULT_
STOP_
SEQUENCES
GEMINI_
DEFAULT_
MODEL
gemini
Create
Interaction
Config
Schema
gemini
State
Mode
Schema
gemma
Config
Schema
GLOBAL_
WEBRTC_
SIGNALLING_
ENDPOINT
INTERACT_
WITH_
GEMMA_
SCHEMA
INTERACT_
WITH_
LLM_
SCHEMA
JSON_
MIMETYPE
MAX_
SINGLE_
MESSAGE_
SIZE
MAX_
SINGLE_
WIRE_
MESSAGE_
SIZE
MINIMUM_
BYTE_
PACKET_
SIZE
MODEL_
CACHE_
NAME
MSGPACK_
MIMETYPE
OCTET_
STREAM_
MIMETYPE
OLLAMA_
DEFAULT_
MODEL
ollama
Create
Chat
Config
Schema
SESSION_
STATUS_
HEADER
SSE_
HTTP_
HEADER_
PREFIX
SSE_
STREAM_
ID_
HEADER
usage
Metadata
Schema
WHOLE_
JSON_
OUTPUT
Functions
a11
Peer
From
String
a11
Peer
To
String
aborted
Error
action
Name
Matches
Allowed
already
Exists
Error
base64
Decode
base64
Encode
cancelled
Error
clone
Chunk
clone
Fragment
concat
Bytes
copy
Byte
Map
data
Loss
Error
deadline
Exceeded
Error
decode
Status
decode
Status
Chunk
execute
Actions
From
Interaction
failed
Precondition
Error
fetch
Model
Asset
Buffer
from
Chunk
get
Allowed
Llm
Action
Patterns
get
Error
get
Global
Serialization
Registry
get
Status
And
Value
get
Tool
Definitions
get
Value
has
Chunk
Store
Shape
interaction
Backend
interact
With
Gemma
interact
With
Llm
internal
Error
invalid
Argument
Error
invoke
Wire
Callback
is
Aborted
Error
is
Already
Exists
Error
is
Cancelled
Error
is
Data
Loss
Error
is
Deadline
Exceeded
Error
is
Failed
Precondition
Error
is
Internal
Error
is
Invalid
Argument
Error
is
Not
Found
Error
is
Ok
is
Out
Of
Range
Error
is
Permission
Denied
Error
is
Resource
Exhausted
Error
is
Status
is
Status
Chunk
is
Unauthenticated
Error
is
Unavailable
Error
is
Unimplemented
Error
is
Unknown
Error
make
Half
Close
Message
make
Interaction
make
Null
Chunk
make
Text
Message
Interaction
noexcept
noexcept
Fetch
normalize
Byte
Chunking
Options
normalize
Byte
Map
normalize
Channel
Framing
Options
normalize
Interaction
normalize
Session
Headers
normalize
Session
Options
normalize
Wire
Headers
normalize
Wire
Stream
Options
not
Found
Error
ok
Status
organise
And
Deduplicate
Jsonschema
out
Of
Range
Error
pack
Status
parse
Byte
Packet
parse
Interaction
permission
Denied
Error
random
Id
register
Interaction
Normalizer
reset
Gemma
Engine
Factory
resource
Exhausted
Error
set
Gemma
Engine
Factory
set
Global
Serialization
Registry
split
Bytes
Into
Packets
status
Code
From
Http
status
Code
From
Web
Socket
status
Code
To
Web
Socket
status
From
Chunk
status
From
Json
status
From
Response
status
From
Unknown
status
To
Chunk
status
To
Json
terminate
throw
For
Error
to
Bytes
to
Bytes
Async
to
Chunk
unauthenticated
Error
unavailable
Error
unimplemented
Error
unknown
Error
unpack
Status
utf8
Decode
utf8
Encode
validate
A11
Peer
validate
Name
value
Or
Terminate
value
Or
Throw
wire
Deadline
Millis
wire
Message
From
Json
Value
wire
Message
To
Json
Value
zod
Parse
zod
To
Json
Schema
A11 guides
Python API
C++ internals
A11 TypeScript API - v0.2.1
Loading...
Public TypeScript surface for building A11 browser and Node agents.