Interface
StepResult
reset returns the initial observation. step executes an action and returns the result. The environment should store the goal internally for success determination in step.Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Required environment interface for TypeScript
interface Environment {
reset(goal: string): string | Promise<string>;
step(action: string): StepResult | Promise<StepResult>;
}
interface StepResult {
observation: string;
done: boolean;
success: boolean;
}
reset returns the initial observation. step executes an action and returns the result. The environment should store the goal internally for success determination in step.