# Agent

Defines an Agent on Bkper.

An Agent represents an entity (such as an App or Bot) that interacts with Bkper, executing actions on behalf of users.

### Constructor

```ts
new Agent(payload?): Agent;
```

#### Parameters

| Parameter | Type |
| :------ | :------ |
| `payload?` | `Agent` |

#### Returns

`Agent`

### payload

```ts
payload: Agent;
```

### getId()

```ts
getId(): string | undefined;
```

Gets the Agent universal identifier.

#### Returns

`string` \| `undefined`

The Agent universal identifier

***

### getLogoUrl()

```ts
getLogoUrl(): string | undefined;
```

Gets the Agent logo URL.

#### Returns

`string` \| `undefined`

The Agent logo url

***

### getLogoUrlDark()

```ts
getLogoUrlDark(): string | undefined;
```

Gets the Agent logo URL in dark mode.

#### Returns

`string` \| `undefined`

The Agent logo url in dark mode

***

### getName()

```ts
getName(): string | undefined;
```

Gets the Agent name.

#### Returns

`string` \| `undefined`

The Agent name

***

### json()

```ts
json(): Agent;
```

Gets the wrapped plain JSON object.

#### Returns

`Agent`

The wrapped plain json object
