> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-7021d5f4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# OutputCodeInterpreterServerToolItem - Python SDK

> OutputCodeInterpreterServerToolItem method reference

<Warning>
  The Python SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/python-sdk/issues).
</Warning>

An openrouter:code\_interpreter server tool output item

## Fields

| Field       | Type                                                                                                                                       | Required             | Description | Example   |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------ | -------------------- | ----------- | --------- |
| `code`      | *Optional\[str]*                                                                                                                           | :heavy\_minus\_sign: | N/A         |           |
| `exit_code` | *Optional\[int]*                                                                                                                           | :heavy\_minus\_sign: | N/A         |           |
| `id`        | *Optional\[str]*                                                                                                                           | :heavy\_minus\_sign: | N/A         |           |
| `language`  | *Optional\[str]*                                                                                                                           | :heavy\_minus\_sign: | N/A         |           |
| `status`    | [components.ToolCallStatus](/client-sdks/python/api-reference/components/toolcallstatus)                                                   | :heavy\_check\_mark: | N/A         | completed |
| `stderr`    | *Optional\[str]*                                                                                                                           | :heavy\_minus\_sign: | N/A         |           |
| `stdout`    | *Optional\[str]*                                                                                                                           | :heavy\_minus\_sign: | N/A         |           |
| `type`      | [components.OutputCodeInterpreterServerToolItemType](/client-sdks/python/api-reference/components/outputcodeinterpreterservertoolitemtype) | :heavy\_check\_mark: | N/A         |           |
