agentCoreRuntime
Installs routes implementing the Amazon Bedrock AgentCore Runtime contract:
GET /ping— health check with task-aware status reporting.POST /invocations— invocation endpoint backed by a single unified handler.
Quick start:
routing {
agentCoreRuntime {
handler = { input, ctx ->
when (input) {
is InvocationInput.Text -> InvocationResult.Text("ok: ${input.body}")
is InvocationInput.Binary -> InvocationResult.Binary(input.bytes, input.contentType)
is InvocationInput.Stream -> InvocationResult.Text("streamed ${input.contentType}")
}
}
}
}Content copied to clipboard
Application plugins such as ContentNegotiation and RateLimit remain owned by the host application and can be applied to these routes through normal Ktor route composition.