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

# Result

## Example Usage

```typescript theme={null}
import { Result } from "@openrouter/sdk/models";

let value: Result = {
  customId: "<id>",
  error: {
    message: "<value>",
    param: "<value>",
    type: "<value>",
  },
  id: "<id>",
  response: {
    body: {
      completedAt: 1704067210,
      createdAt: 1704067200,
      error: null,
      frequencyPenalty: null,
      id: "resp-abc123",
      incompleteDetails: null,
      instructions: null,
      metadata: null,
      model: "gpt-4",
      object: "response",
      output: [
        {
          content: [
            {
              text: "Hello! How can I help you today?",
              type: "output_text",
            },
          ],
          id: "msg-abc123",
          role: "assistant",
          type: "message",
        },
      ],
      parallelToolCalls: true,
      presencePenalty: null,
      status: "completed",
      temperature: null,
      toolChoice: "auto",
      tools: [],
      topP: null,
    },
    requestId: "<id>",
    statusCode: 170920,
  },
};
```

## Fields

| Field      | Type                                                            | Required             | Description |
| ---------- | --------------------------------------------------------------- | -------------------- | ----------- |
| `customId` | *string*                                                        | :heavy\_check\_mark: | N/A         |
| `error`    | [models.ResultError](../models/resulterror.mdx)                 | :heavy\_check\_mark: | N/A         |
| `id`       | *string*                                                        | :heavy\_check\_mark: | N/A         |
| `response` | [models.BatchObjectResponse](../models/batchobjectresponse.mdx) | :heavy\_check\_mark: | N/A         |
