1import * as Effect from "effect/Effect";
2import * as S from "effect/Schema";
3
4import * as AI from "alchemy/AI";
5
6export const cmd = AI.Parameter("cmd")(
7 S.String.pipe(S.optional),
8)`The command to run.`;
9
10export const Bash = AI.Tool("bash")`
11Run a shell ${cmd} and return its stdout, stderr, and exit code.`(
12 Effect.fn(function* ({ cmd }) {
13 void cmd;
14 }),
15);