> ## 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.

# GalileoEvaluateApiClient

***

# Class: GalileoEvaluateApiClient

Defined in: [src/evaluate/api-client.ts](https://github.com/rungalileo/galileo-js/blob/main/src/evaluate/api-client.ts)

## Extends

* `GalileoLegacyApiClient`

## Constructors

### Constructor

```ts theme={null}
new GalileoEvaluateApiClient(): GalileoEvaluateApiClient;
```

Defined in: [src/evaluate/api-client.ts](https://github.com/rungalileo/galileo-js/blob/main/src/evaluate/api-client.ts)

#### Returns

`GalileoEvaluateApiClient`

#### Overrides

```ts theme={null}
GalileoLegacyApiClient.constructor;
```

## Properties

### datasetId

```ts theme={null}
datasetId: string = "";
```

Defined in: [src/legacy-api-client.ts](https://github.com/rungalileo/galileo-js/blob/main/src/legacy-api-client.ts)

#### Inherited from

```ts theme={null}
GalileoLegacyApiClient.datasetId;
```

***

### projectId

```ts theme={null}
projectId: string = "";
```

Defined in: [src/legacy-api-client.ts](https://github.com/rungalileo/galileo-js/blob/main/src/legacy-api-client.ts)

#### Inherited from

```ts theme={null}
GalileoLegacyApiClient.projectId;
```

***

### runId

```ts theme={null}
runId: string = "";
```

Defined in: [src/legacy-api-client.ts](https://github.com/rungalileo/galileo-js/blob/main/src/legacy-api-client.ts)

#### Inherited from

```ts theme={null}
GalileoLegacyApiClient.runId;
```

***

### type

```ts theme={null}
type:
  | undefined
  | "prompt_evaluation"
  | "llm_monitor"
  | "gen_ai"
  | "training_inference"
  | "protect" = undefined;
```

Defined in: [src/legacy-api-client.ts](https://github.com/rungalileo/galileo-js/blob/main/src/legacy-api-client.ts)

#### Inherited from

```ts theme={null}
GalileoLegacyApiClient.type;
```

## Methods

### createRun()

```ts theme={null}
createRun(runName?: string, runTags?: RunTag[]): Promise<string>;
```

Defined in: [src/evaluate/api-client.ts](https://github.com/rungalileo/galileo-js/blob/main/src/evaluate/api-client.ts)

#### Parameters

##### runName?

`string`

##### runTags?

`RunTag`\[]

#### Returns

`Promise`\<`string`>

***

### ingestChain()

```ts theme={null}
ingestChain(
   rows: Node[],
   prompt_scorers_configuration: ScorersConfiguration,
   prompt_registered_scorers_configuration?: RegisteredScorer[],
   prompt_customized_scorers_configuration?: CustomizedScorer[]): Promise<{
  message: string;
  num_rows: number;
}>;
```

Defined in: [src/evaluate/api-client.ts](https://github.com/rungalileo/galileo-js/blob/main/src/evaluate/api-client.ts)

#### Parameters

##### rows

`Node`\[]

##### prompt\_scorers\_configuration

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

##### prompt\_registered\_scorers\_configuration?

[`RegisteredScorer`](/sdk-api/typescript/reference/types/interfaces/RegisteredScorer)\[]

##### prompt\_customized\_scorers\_configuration?

[`CustomizedScorer`](/sdk-api/typescript/reference/types/interfaces/CustomizedScorer)\[]

#### Returns

`Promise`\<\{
`message`: `string`;
`num_rows`: `number`;
}>

***

### init()

```ts theme={null}
init(projectName?: string, datasetId?: string): Promise<void>;
```

Defined in: [src/legacy-api-client.ts](https://github.com/rungalileo/galileo-js/blob/main/src/legacy-api-client.ts)

#### Parameters

##### projectName?

`string`

##### datasetId?

`string`

#### Returns

`Promise`\<`void`>

#### Inherited from

```ts theme={null}
GalileoLegacyApiClient.init;
```

***

### makeRequest()

```ts theme={null}
makeRequest<T>(
   request_method: Method,
   endpoint: Routes,
   data?: null | string | Record<string, any>,
params?: Record<string, unknown>): Promise<T>;
```

Defined in: [src/legacy-api-client.ts](https://github.com/rungalileo/galileo-js/blob/main/src/legacy-api-client.ts)

#### Type Parameters

##### T

`T`

#### Parameters

##### request\_method

`Method`

##### endpoint

`Routes`

##### data?

`null` | `string` | `Record`\<`string`, `any`>

##### params?

`Record`\<`string`, `unknown`>

#### Returns

`Promise`\<`T`>

#### Inherited from

```ts theme={null}
GalileoLegacyApiClient.makeRequest;
```
