http
Installation
bun add @regent/httpBasic Usage
import { createAgent } from '@regent/core';
import { http } from '@regent/http';
const agent = await createAgent({
name: 'my-agent',
version: '1.0.0',
})
.use(http())
.build();API Reference
http(options?)
HttpExtensionOptions
HTTP Handlers
Endpoints
Endpoint
Method
Description
Request/Response Format
Invoke Request
Invoke Response
Stream Request
Stream Response (SSE)
SSE Streaming
createSSEStream
SSE Types
Stream Envelope Types
StreamRunStartEnvelope
StreamDeltaEnvelope
StreamTextEnvelope
StreamAssetEnvelope
StreamControlEnvelope
StreamErrorEnvelope
StreamRunEndEnvelope
StreamPushEnvelope
Invoke Handler
InvokeResult
Utility Functions
normalizeOrigin
Exports
Last updated