> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo-platform/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo-platform/_mcp/server.

# Create Evaluator Result

POST https://host.com/apis/intake/v2/workspaces/{workspace}/evaluator-results
Content-Type: application/json

Reference: https://docs.nvidia.com/nemo-platform/nemo-platform/documentation/reference/api-reference/evaluator-results/create-evaluator-result-apis-intake-v-2-workspaces-workspace-evaluator-results-post

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: Nemo Platform API
  version: 1.0.0
paths:
  /apis/intake/v2/workspaces/{workspace}/evaluator-results:
    post:
      operationId: >-
        create-evaluator-result-apis-intake-v-2-workspaces-workspace-evaluator-results-post
      summary: Create Evaluator Result
      tags:
        - subpackage_evaluatorResults
      parameters:
        - name: workspace
          in: path
          required: true
          schema:
            type: string
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EvaluatorResult'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EvaluatorResultInput'
servers:
  - url: https://host.com
    description: Default
components:
  schemas:
    EvaluatorResultDataType:
      type: string
      enum:
        - NUMERIC
        - CATEGORICAL
        - BOOLEAN
        - TEXT
      title: EvaluatorResultDataType
    EvaluatorResultInput:
      type: object
      properties:
        span_id:
          type: string
          description: >-
            Target span id. Not validated against existing spans (loose target
            policy).
        session_id:
          type: string
          description: >-
            Session id the target span belongs to. Denormalized so
            session-scoped reads stay fast.
        name:
          type: string
          description: Evaluator / metric identity (e.g. 'faithfulness/v1').
        value:
          type: number
          format: double
          description: Numeric value. Required when data_type is NUMERIC or BOOLEAN (0|1).
        string_value:
          type: string
          description: String value. Required when data_type is CATEGORICAL or TEXT.
        data_type:
          $ref: '#/components/schemas/EvaluatorResultDataType'
          description: Discriminator for which of value / string_value carries the payload.
        comment:
          type: string
          description: Free-text rationale or explanation.
      required:
        - span_id
        - session_id
        - name
        - data_type
      description: |-
        Request body for POST /evaluator-results.

        Server fills in `evaluator_result_id`, `created_at`, `ingested_at`, and
        `created_by`. Producer supplies the target span (loose target — not
        validated against the spans table), the score, and provenance.
      title: EvaluatorResultInput
    EvaluatorResult:
      type: object
      properties:
        evaluator_result_id:
          type: string
        span_id:
          type: string
        session_id:
          type: string
        workspace:
          type: string
        name:
          type: string
        value:
          type: number
          format: double
        string_value:
          type: string
        data_type:
          $ref: '#/components/schemas/EvaluatorResultDataType'
        comment:
          type: string
        created_by:
          type: string
        created_at:
          type: string
          format: date-time
        ingested_at:
          type: string
          format: date-time
      required:
        - evaluator_result_id
        - span_id
        - session_id
        - workspace
        - name
        - data_type
        - created_at
        - ingested_at
      description: Response model for evaluator_results read endpoints.
      title: EvaluatorResult
    ValidationErrorLocItems:
      oneOf:
        - type: string
        - type: integer
      title: ValidationErrorLocItems
    ValidationError:
      type: object
      properties:
        loc:
          type: array
          items:
            $ref: '#/components/schemas/ValidationErrorLocItems'
        msg:
          type: string
        type:
          type: string
        input:
          description: Any type
        ctx:
          type: object
          additionalProperties:
            description: Any type
      required:
        - loc
        - msg
        - type
      title: ValidationError
    HTTPValidationError:
      type: object
      properties:
        detail:
          type: array
          items:
            $ref: '#/components/schemas/ValidationError'
      title: HTTPValidationError

```

## Examples



**Request**

```json
{
  "span_id": "span-9f8b7c6d",
  "session_id": "session-4a3e2b1c",
  "name": "faithfulness/v1",
  "data_type": "NUMERIC"
}
```

**Response**

```json
{
  "evaluator_result_id": "evalres-123e4567-e89b-12d3-a456-426614174000",
  "span_id": "span-9f8b7c6d",
  "session_id": "session-4a3e2b1c",
  "workspace": "nemo-research",
  "name": "faithfulness/v1",
  "data_type": "NUMERIC",
  "created_at": "2024-01-15T09:30:00Z",
  "ingested_at": "2024-01-15T09:30:00Z",
  "value": 0.87,
  "string_value": "",
  "comment": "Score computed based on model output consistency.",
  "created_by": "evaluator-service"
}
```

**SDK Code**

```python
import requests

url = "https://host.com/apis/intake/v2/workspaces/workspace/evaluator-results"

payload = {
    "span_id": "span-9f8b7c6d",
    "session_id": "session-4a3e2b1c",
    "name": "faithfulness/v1",
    "data_type": "NUMERIC"
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://host.com/apis/intake/v2/workspaces/workspace/evaluator-results';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: '{"span_id":"span-9f8b7c6d","session_id":"session-4a3e2b1c","name":"faithfulness/v1","data_type":"NUMERIC"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://host.com/apis/intake/v2/workspaces/workspace/evaluator-results"

	payload := strings.NewReader("{\n  \"span_id\": \"span-9f8b7c6d\",\n  \"session_id\": \"session-4a3e2b1c\",\n  \"name\": \"faithfulness/v1\",\n  \"data_type\": \"NUMERIC\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://host.com/apis/intake/v2/workspaces/workspace/evaluator-results")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n  \"span_id\": \"span-9f8b7c6d\",\n  \"session_id\": \"session-4a3e2b1c\",\n  \"name\": \"faithfulness/v1\",\n  \"data_type\": \"NUMERIC\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://host.com/apis/intake/v2/workspaces/workspace/evaluator-results")
  .header("Content-Type", "application/json")
  .body("{\n  \"span_id\": \"span-9f8b7c6d\",\n  \"session_id\": \"session-4a3e2b1c\",\n  \"name\": \"faithfulness/v1\",\n  \"data_type\": \"NUMERIC\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://host.com/apis/intake/v2/workspaces/workspace/evaluator-results', [
  'body' => '{
  "span_id": "span-9f8b7c6d",
  "session_id": "session-4a3e2b1c",
  "name": "faithfulness/v1",
  "data_type": "NUMERIC"
}',
  'headers' => [
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://host.com/apis/intake/v2/workspaces/workspace/evaluator-results");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"span_id\": \"span-9f8b7c6d\",\n  \"session_id\": \"session-4a3e2b1c\",\n  \"name\": \"faithfulness/v1\",\n  \"data_type\": \"NUMERIC\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Content-Type": "application/json"]
let parameters = [
  "span_id": "span-9f8b7c6d",
  "session_id": "session-4a3e2b1c",
  "name": "faithfulness/v1",
  "data_type": "NUMERIC"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://host.com/apis/intake/v2/workspaces/workspace/evaluator-results")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```