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

# Interface: GetAgentSpansOptions

> TypeScript SDK reference

[weave](../) / GetAgentSpansOptions

Options for [WeaveClient.getAgentSpans](../classes/weaveclient#getagentspans).

## Table of contents

### Properties

* [agentName](./getagentspansoptions#agentname)
* [limit](./getagentspansoptions#limit)
* [offset](./getagentspansoptions#offset)
* [query](./getagentspansoptions#query)
* [sortBy](./getagentspansoptions#sortby)

## Properties

### agentName

• `Optional` **agentName**: `string`

#### Defined in

[src/weaveClient.ts:161](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/weaveClient.ts#L161)

***

### limit

• `Optional` **limit**: `number`

`Min`

0

`Max`

10000

`Default`

```ts twoslash theme={null}
// @noErrors
100
```

#### Defined in

[src/weaveClient.ts:171](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/weaveClient.ts#L171)

***

### offset

• `Optional` **offset**: `number`

`Min`

0

`Default`

```ts twoslash theme={null}
// @noErrors
0
```

#### Defined in

[src/weaveClient.ts:176](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/weaveClient.ts#L176)

***

### query

• `Optional` **query**: `null` | [`Query`](./query)

Mongo-style filter on the spans.

#### Defined in

[src/weaveClient.ts:165](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/weaveClient.ts#L165)

***

### sortBy

• `Optional` **sortBy**: [`SortBy`](./sortby)\[]

#### Defined in

[src/weaveClient.ts:177](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/weaveClient.ts#L177)
