asChunkOrNull
Casts this InvokeAgentRuntimeCommandStreamOutput as a Chunk and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.ResponseChunk value. Returns null if the InvokeAgentRuntimeCommandStreamOutput is not a Chunk.