Interfaces

CodeResult

Interface: CodeResult

Defined in: src/adapters/types.ts:919

What one execution produced.

Properties

artifacts?

readonly optional artifacts?: readonly object[]

Defined in: src/adapters/types.ts:940

Files the run produced, described rather than inlined — the whole point is that big data does not enter the window. All fields beyond the original { name, bytes, uri? } are ADDITIVE (9.22.0) and honest about absence: a runner that only knows the file exists states exactly what it always did.

data is the in-band payload, present ONLY when the adapter can hand the bytes back (a local runner reading its own working directory, a managed sandbox that returns file contents). When a store is attached, codeRunnerTool mints every data-carrying entry into the artifact store and the model's result names the ref — entries without data stay described-only, because minting needs bytes and inventing them is worse than stating the gap. mediaType is the adapter's own statement when it knows one; ref is stamped by whoever minted the file into an artifact store (today: codeRunnerTool's mint-on-output).


exitCode?

readonly optional exitCode?: number

Defined in: src/adapters/types.ts:924


ok

readonly ok: boolean

Defined in: src/adapters/types.ts:921

Did the code run to completion without an error exit?


stderr

readonly stderr: string

Defined in: src/adapters/types.ts:923


stdout

readonly stdout: string

Defined in: src/adapters/types.ts:922


truncated?

readonly optional truncated?: object

Defined in: src/adapters/types.ts:957

Present IFF output was cut, and then it says by how much.

Load-bearing, not politeness. A runner exists so big data is computed outside the context window instead of pasted into it; a runner that quietly slices its own output to fit is the same bug wearing a different hat, and the model would go on to reason over a truncated table it was never told was truncated. An unstated slice is a silent success.

ofChars?

readonly optional ofChars?: number

The pre-truncation length, in characters, of whichever stream was cut.

stderr?

readonly optional stderr?: boolean

stdout?

readonly optional stdout?: boolean

On this page