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

# Core Exports

> Core exports from Runflow SDK

## Core Exports

```typescript theme={null}
import { Agent, Runflow, openai, anthropic, bedrock } from '@runflow-ai/sdk';
```

## AgentInput.request

When an agent is invoked via the **direct HTTP Agent API**, the platform auto-injects the raw HTTP request context on `input.request`. Useful for reading custom headers, cookies, query params, or path params without re-wrapping the agent in a controller.

```typescript theme={null}
export async function main(input: AgentInput) {
  const traceId = input.request?.headers?.['x-trace-id'];
  const lang    = input.request?.query?.lang ?? 'pt-BR';
  // ...
}
```

`input.request` is **not populated** for webhook-triggered invocations (the payload lives in `metadata` instead), scheduled jobs, or direct SDK calls. Always guard access with optional chaining.

See [Core Types → AgentInput](/api-reference/types/core-types#agent-types) for the full field list.

## Next Steps

<CardGroup cols={2}>
  <Card title="Tools & Connectors" icon="wrench" href="/api-reference/tools-connectors">
    View tools exports
  </Card>

  <Card title="Workflows" icon="diagram-project" href="/api-reference/workflows">
    View workflow exports
  </Card>
</CardGroup>
