agentskit.js

HttpBatchOptions

Auto-generated API reference for HttpBatchOptions.

Interface: HttpBatchOptions

Defined in: observability/src/http-batch-sink.ts:11

Common batching / retry knobs for the three HTTP log sinks.

#Extended by

#Properties

#batchSize?

optional batchSize?: number

Defined in: observability/src/http-batch-sink.ts:13

Max events per POST. Default 25. Positive integer.


#fetch?

optional fetch?: {(input, init?): Promise<Response>; (input, init?): Promise<Response>; }

Defined in: observability/src/http-batch-sink.ts:26

#Call Signature

(input, init?): Promise<Response>

MDN Reference

Parameters
input

RequestInfo | URL

init?

RequestInit

Returns

Promise<Response>

#Call Signature

(input, init?): Promise<Response>

MDN Reference

Parameters
input

string | Request | URL

init?

RequestInit

Returns

Promise<Response>


#flushIntervalMs?

optional flushIntervalMs?: number

Defined in: observability/src/http-batch-sink.ts:17

Periodic drain interval (ms). Default 2000. Finite > 0.


#maxQueueSize?

optional maxQueueSize?: number

Defined in: observability/src/http-batch-sink.ts:15

Hard queue cap; drop oldest when full. Default 1000. Positive integer.


#maxRetries?

optional maxRetries?: number

Defined in: observability/src/http-batch-sink.ts:19

Retries after the initial attempt. Default 3. Integer β‰₯ 0.


#onError?

optional onError?: (error) => void | Promise<void>

Defined in: observability/src/http-batch-sink.ts:25

Isolated error sink; throws/rejections never escape the observer.

#Parameters

error

unknown

#Returns

void | Promise<void>


#requestTimeoutMs?

optional requestTimeoutMs?: number

Defined in: observability/src/http-batch-sink.ts:23

Per-request timeout (ms). Default 10000. Positive integer.


#retryBaseDelayMs?

optional retryBaseDelayMs?: number

Defined in: observability/src/http-batch-sink.ts:21

Base backoff delay (ms); doubled each attempt, capped at 30s, no jitter. Default 100.

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page

Ask the docs
Ask anything about AgentsKit. Answers come from the docs corpus and cite their sources.