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

# SerializedAgentSpan

***

# Interface: SerializedAgentSpan

Defined in: [src/types/logging/span.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/logging/span.types.ts)

## Extends

* [`SerializedStepWithChildSpans`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans)

## Properties

### agentType

```ts theme={null}
agentType: AgentType;
```

Defined in: [src/types/logging/span.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/logging/span.types.ts)

***

### createdAt

```ts theme={null}
createdAt: Date;
```

Defined in: [src/types/logging/step.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/logging/step.types.ts)

#### Inherited from

[`SerializedStepWithChildSpans`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans).[`createdAt`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans.mdx#createdat)

***

### datasetInput?

```ts theme={null}
optional datasetInput: string;
```

Defined in: [src/types/logging/step.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/logging/step.types.ts)

#### Inherited from

[`SerializedStepWithChildSpans`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans).[`datasetInput`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans.mdx#datasetinput)

***

### datasetMetadata?

```ts theme={null}
optional datasetMetadata: Record<string, string>;
```

Defined in: [src/types/logging/step.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/logging/step.types.ts)

#### Inherited from

[`SerializedStepWithChildSpans`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans).[`datasetMetadata`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans.mdx#datasetmetadata)

***

### datasetOutput?

```ts theme={null}
optional datasetOutput: string;
```

Defined in: [src/types/logging/step.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/logging/step.types.ts)

#### Inherited from

[`SerializedStepWithChildSpans`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans).[`datasetOutput`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans.mdx#datasetoutput)

***

### externalId?

```ts theme={null}
optional externalId: string;
```

Defined in: [src/types/logging/step.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/logging/step.types.ts)

#### Inherited from

[`SerializedStepWithChildSpans`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans).[`externalId`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans.mdx#externalid)

***

### id?

```ts theme={null}
optional id: string;
```

Defined in: [src/types/logging/step.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/logging/step.types.ts)

#### Inherited from

[`SerializedStepWithChildSpans`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans).[`id`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans.mdx#id)

***

### input?

```ts theme={null}
optional input: StepAllowedInputType;
```

Defined in: [src/types/logging/step.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/logging/step.types.ts)

#### Inherited from

[`SerializedStepWithChildSpans`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans).[`input`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans.mdx#input)

***

### metadata?

```ts theme={null}
optional metadata: Record<string, string>;
```

Defined in: [src/types/logging/step.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/logging/step.types.ts)

#### Inherited from

[`SerializedStepWithChildSpans`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans).[`metadata`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans.mdx#metadata)

***

### metrics?

```ts theme={null}
optional metrics: MetricsOptions;
```

Defined in: [src/types/logging/step.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/logging/step.types.ts)

#### Inherited from

[`SerializedStepWithChildSpans`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans).[`metrics`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans.mdx#metrics)

***

### name?

```ts theme={null}
optional name: string;
```

Defined in: [src/types/logging/step.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/logging/step.types.ts)

#### Inherited from

[`SerializedStepWithChildSpans`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans).[`name`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans.mdx#name)

***

### output?

```ts theme={null}
optional output:
  | JsonArray
  | StepAllowedOutputType;
```

Defined in: [src/types/logging/step.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/logging/step.types.ts)

#### Inherited from

[`SerializedStepWithChildSpans`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans).[`output`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans.mdx#output)

***

### redactedInput?

```ts theme={null}
optional redactedInput: StepAllowedInputType;
```

Defined in: [src/types/logging/step.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/logging/step.types.ts)

#### Inherited from

[`SerializedStepWithChildSpans`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans).[`redactedInput`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans.mdx#redactedinput)

***

### redactedOutput?

```ts theme={null}
optional redactedOutput:
  | JsonArray
  | StepAllowedOutputType;
```

Defined in: [src/types/logging/step.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/logging/step.types.ts)

#### Inherited from

[`SerializedStepWithChildSpans`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans).[`redactedOutput`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans.mdx#redactedoutput)

***

### spans?

```ts theme={null}
optional spans: JsonArray;
```

Defined in: [src/types/logging/span.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/logging/span.types.ts)

#### Inherited from

[`SerializedStepWithChildSpans`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans).[`spans`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans.mdx#spans)

***

### statusCode?

```ts theme={null}
optional statusCode: number;
```

Defined in: [src/types/logging/step.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/logging/step.types.ts)

#### Inherited from

[`SerializedStepWithChildSpans`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans).[`statusCode`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans.mdx#statuscode)

***

### stepNumber?

```ts theme={null}
optional stepNumber: number;
```

Defined in: [src/types/logging/step.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/logging/step.types.ts)

#### Inherited from

[`SerializedStepWithChildSpans`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans).[`stepNumber`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans.mdx#stepnumber)

***

### tags?

```ts theme={null}
optional tags: string[];
```

Defined in: [src/types/logging/step.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/logging/step.types.ts)

#### Inherited from

[`SerializedStepWithChildSpans`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans).[`tags`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans.mdx#tags)

***

### type

```ts theme={null}
type:
  | "agent"
  | "llm"
  | "retriever"
  | "tool"
  | "workflow"
  | "control"
  | "trace"
  | "session";
```

Defined in: [src/types/logging/step.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/logging/step.types.ts)

#### Inherited from

[`SerializedStepWithChildSpans`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans).[`type`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans.mdx#type)

***

### userMetadata

```ts theme={null}
userMetadata: Record<string, string>;
```

Defined in: [src/types/logging/step.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/logging/step.types.ts)

#### Inherited from

[`SerializedStepWithChildSpans`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans).[`userMetadata`](/sdk-api/typescript/reference/types/interfaces/SerializedStepWithChildSpans.mdx#usermetadata)
