Skip to content

Conversation

@swyxio
Copy link
Contributor

@swyxio swyxio commented Mar 30, 2025

this doesnt fullly work yet but gives you an idea

Comment on lines -378 to +383
async def run(task: VerifiedTask[S, A, R, T], agent: Agent[S, A, R, T], max_steps: int = 100,
verify_every_step: bool = False, ttl_seconds: Optional[int] = None) -> Tuple[VerificationResult[R], Trajectory[S, A, R, T]]:
async def initialize_run(task: VerifiedTask[S, A, R, T], agent: Agent[S, A, R, T], ttl_seconds: Optional[int] = None) -> Tuple[Instance[S, T], Trajectory[S, A, R, T], 'MorphInstance']:
"""
Run an agent on a task until the task is complete or max_steps is reached.
Initialize a run by creating the Morph instance and initial state.
Returns:
Tuple of (initial_state, trajectory, morph_instance)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

specificaly break up run into initialize and continue steps

and dont eagerly stop instances

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant