Skip to content

tools/env

What every coding tool shares: its error, and the environment of the call.

Since v0.0.0


A coding tool’s failure; the model sees its message in the error result.

Signature

declare class CodingToolError

Source

Since v0.0.0

Fail with message.

Signature

declare const fail: (message: string) => Effect.Effect<never, CodingToolError>

Source

Since v0.0.0

The call’s environment; without one the call fails with an ordinary error result.

Signature

declare const requireEnv: Effect.Effect<ExecEnv, CodingToolError, ToolCall>

Source

Since v0.0.0