AgentCoreRuntimeConfig

Configuration for the agentCoreRuntime route installer.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Threshold (in bytes) above which an inbound request body is exposed as InvocationInput.Stream rather than InvocationInput.Binary. Requests with no Content-Length header are also exposed as InvocationInput.Stream.

Link copied to clipboard

Single handler covering all input/output shapes. Required unless a typed handler is registered via handle.

Link copied to clipboard

Per-request handler timeout, in milliseconds. When > 0, the unified handler / typed handler is wrapped in a withTimeout(...) block. On timeout the request fails with HTTP 504 Gateway Timeout and a structured JSON error body.

Link copied to clipboard

Maximum allowed request body size, in bytes. Requests whose Content-Length exceeds this value are rejected with HTTP 413 Payload Too Large before the handler is invoked. Requests with no Content-Length header are not pre-checked (the underlying engine's limits still apply).

Link copied to clipboard

Custom ping service. Defaults to StaticAgentCorePingService.

Link copied to clipboard

Task tracker used to report PingStatus.HEALTHY_BUSY while long-running background work is in progress. Exposed to the handler via AgentCoreContext.taskTracker.

Functions

Link copied to clipboard
inline fun <I : Any, O> AgentCoreRuntimeConfig.handle(crossinline handler: TypedInvocationHandler<I, O>)

Registers a typed invocation handler — convenience for JSON-in / JSON-out flows.