tools/env
What every coding tool shares: its error, and the environment of the call.
Since v0.0.0
CodingToolError (class)
Section titled “CodingToolError (class)”A coding tool’s failure; the model sees its message in the error result.
Signature
declare class CodingToolErrorSince v0.0.0
Fail with message.
Signature
declare const fail: (message: string) => Effect.Effect<never, CodingToolError>Since v0.0.0
requireEnv
Section titled “requireEnv”The call’s environment; without one the call fails with an ordinary error result.
Signature
declare const requireEnv: Effect.Effect<ExecEnv, CodingToolError, ToolCall>Since v0.0.0