Graphorin API reference v0.4.0
Graphorin API reference / @graphorin/evals / / AgentLike
Interface: AgentLike<I, O>
Defined in: evals/src/types.ts:31
Agent shape consumed by the runner. Anything with a run(input) method satisfies the contract — the framework's own Agent type matches by structural typing.
Stable
Type Parameters
| Type Parameter |
|---|
I |
O |
Methods
run()
ts
run(input, ctx?): Promise<O>;Defined in: evals/src/types.ts:32
Parameters
| Parameter | Type |
|---|---|
input | I |
ctx? | { signal?: AbortSignal; } |
ctx.signal? | AbortSignal |
Returns
Promise<O>