# defineAgent

> API reference for defineAgent: parameters, properties, and return types.

Defines an agent and its configuration.

```ts
import { defineAgent } from '@rippling/rippling-sdk';
```

## Properties

| Property | Required | Type | Description |
| --- | --- | --- | --- |
| `apiName` | Required | `` `${string}__c` `` | Company-scoped API name ending in `__c`. |
| `description` | Required | `string` | Human-readable description. |
| `eventTriggers` | Required | `[ACPAgentEventTrigger](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/ACPAgentEventTrigger-d2c7b67e)[]` | Trigger configuration managed by this manifest. Pass \[\] for no triggers. |
| `identityMode` | Required | `"runner"` | Identity used when the agent runs. ACP Composer supports only `runner`. |
| `name` | Required | `string` | Display name shown in Rippling. |
| `entrypoint` | Required in some variants | `string \| never` | Path of the source file that starts the agent. |
| `files` | Required in some variants | `[ACPAgentSourceFile](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/ACPAgentSourceFile-ad97b046)[] \| never` | Source files for the agent's latest revision. |
| `source` | Required in some variants | `never \| URL` | — |
| `isForEvals` | Optional | `boolean` | Evaluation-only agent. This cannot change after creation. |

Requirements marked “in some variants” depend on the selected union member.

[Complete options type](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/DefinedAgentProps-c236627b)

TypeScript signature

```ts
defineAgent(props: DefinedAgentProps): DefinedAgent;
```

## Returns

```
DefinedAgent
```

## Availability

| Capability | Support |
| --- | --- |
| Pull into a project | Supported |
| Runtime operations | Available with an authenticated SDK client |

Source: https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/defineAgent

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
