> ## Documentation Index
> Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Lifecycle

> Members involved in an agent instance lifecycle: the runtime-invoked constructor, ctx and env, HTTP and WebSocket entry points, and the alarm slot.

The runtime constructs and activates agent instances for you; these are the
members involved in that lifecycle — construction, the inherited actor
primitives, the inbound HTTP/WebSocket entry points, and the alarm slot the
SDK reserves for the task scheduler.

## constructor

<Constructor />

## AgentOptions

<AgentOptions />

## ctx

<Ctx />

## env

<Env />

## fetch()

<Fetch />

## webSocket()

<WebSocketMethod />

## onConnect()

<OnConnect />

## alarm()

<Alarm />

## destroy()

<Destroy />
