Package-level declarations

Types

Link copied to clipboard
class AgentCoreContext(headers: Headers, val taskTracker: AgentCoreTaskTracker)

Context object containing HTTP headers from AgentCore invocation requests.

Link copied to clipboard

Well-known AgentCore HTTP headers used by Amazon Bedrock AgentCore Runtime.

Link copied to clipboard

Exception thrown when there are issues with AgentCore invocation.

Link copied to clipboard
data class AgentCorePingResponse(val status: PingStatus, val httpStatus: HttpStatusCode, val timeOfLastUpdate: Long)

Ping response data returned by AgentCorePingService.

Link copied to clipboard
fun interface AgentCorePingService

Interface for providing ping status.

Link copied to clipboard

Configuration for the agentCoreRuntime route installer.

Link copied to clipboard

Tracks active background tasks so the /ping endpoint can report PingStatus.HEALTHY_BUSY instead of PingStatus.HEALTHY, preventing the runtime from scaling the agent down while long-running work is in progress.

Link copied to clipboard
sealed interface InvocationInput

Structured input handed to the unified invocation handler.

Link copied to clipboard
sealed interface InvocationResult

Structured result of an invocation. Each variant maps to a specific HTTP response shape.

Link copied to clipboard

Health status for AgentCore ping responses.

Link copied to clipboard

Default ping service that uses AgentCoreTaskTracker for busy detection.

Link copied to clipboard
typealias TypedInvocationHandler<I, O> = suspend RoutingContext.(input: I, context: AgentCoreContext) -> O

Typed handler for invocation requests — convenience for the common JSON-in / JSON-out case.

Link copied to clipboard

Unified handler for invocation requests — single entry point for all input/output shapes.

Functions

Link copied to clipboard

Installs routes implementing the Amazon Bedrock AgentCore Runtime contract:

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.

Link copied to clipboard
fun streamingBytesFlow(producer: suspend SendChannel<ByteArray>.() -> Unit): Flow<ByteArray>

Symmetric helper for binary streams used with InvocationResult.BinaryStream.

Link copied to clipboard
fun streamingFlow(producer: suspend SendChannel<String>.() -> Unit): Flow<String>

Helper that builds a context-safe Flow<String> suitable for InvocationResult.TextStream.

Link copied to clipboard

Converts a Bedrock ContentBlock (typically from a Converse/ConverseStream output message) into an InvocationResult suitable for an HTTP response.