Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lalalune committed Jul 15, 2023
1 parent ef891a7 commit cab74dd
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,21 @@ A simple, lightweight loop for your agent. Start/stop, step-through, and more.

# Quickstart
```python
def step_one(next_output):
print("step_one")
return next_output
from agentloop import start, stop

def step_two(next_output):
print("step_two")
return next_output
def step_one(next_output):
print("step_one")
return next_output

def step_two(next_output):
print("step_two")
return next_output

# Run the loop
loop_dict = start(steps=[step_one, step_two])
# Run the loop
loop_dict = start(steps=[step_one, step_two])

# Stop the loop
stop(loop_dict)
# Stop the loop
stop(loop_dict)
```


Expand Down Expand Up @@ -47,7 +49,7 @@ def step_two(next_output): # next output received from step_one
print("step_two")
return next_output # next output sent to step_one

steps = [step_one, step_two]
steps = [step_one, step_two]g
```

## Function `start`
Expand Down

0 comments on commit cab74dd

Please sign in to comment.