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

# agent • TypeScript AI Agent SDK

> * Agent Module - Core agent classes for PraisonAI

# agent

<Badge color="green">TypeScript AI Agent</Badge>

* Agent Module - Core agent classes for PraisonAI
* The primary exports are:

- Agent: Single agent with instructions, tools, and optional persistence
- Agents: Multi-agent orchestration (alias for PraisonAIAgents)
- Router: Simplified keyword/pattern-based routing
- Workflow: Step-based workflow execution (from workflows module)

## Import

```typescript theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
import { agent } from 'praisonai';
```

## Functions

<CardGroup cols={2}>
  <Card title="setTaskMode()" icon="function" href="../functions/setTaskMode">
    Function definition.
  </Card>
</CardGroup>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="JS Agent Guide" icon="robot" href="/docs/js/agent" />

  <Card title="JS Agents" icon="users" href="/docs/js/agents" />

  <Card title="JS Auto Agents" icon="wand-magic-sparkles" href="/docs/js/auto-agents" />

  <Card title="JS Agent Team" icon="users" href="/docs/js/agent-team" />

  <Card title="JS Agent Flow" icon="diagram-project" href="/docs/js/agent-flow" />
</CardGroup>
