AgentCoreContext

class AgentCoreContext(headers: Headers, val taskTracker: AgentCoreTaskTracker)(source)

Context object containing HTTP headers from AgentCore invocation requests.

Provides access to all headers sent by the AgentCore Runtime, including session IDs, user IDs, authentication tokens, and custom headers.

Constructors

Link copied to clipboard
constructor(headers: Headers, taskTracker: AgentCoreTaskTracker)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun getHeader(headerName: String): String?

Returns the value of a specific header, or null if not present.

Link copied to clipboard

Returns all headers from the invocation request.