Skip to content

Commit

Permalink
Merge pull request #359 from PrefectHQ/discdiver-patch-1
Browse files Browse the repository at this point in the history
Fix broken link and broken code in docs
  • Loading branch information
jlowin authored Oct 25, 2024
2 parents 206481d + 9bd2d2b commit 2dac05a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/concepts/agents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ temporary positive outcomes, despite the overall bleak and discouraging reality.

</CodeGroup>

When tasks have multiple agents, it's important to understand how they collaborate (and to provide them with clear instructions to guide that behavior). To learn more, see the [collaboration](/patterns/collaboration) doc.
When tasks have multiple agents, it's important to understand how they collaborate (and to provide them with clear instructions to guide that behavior). To learn more, see the [multi-agent collaboration docs](/patterns/running-tasks#multi-agent-collaboration).

#### Assigning completion agents

Expand All @@ -251,4 +251,4 @@ task = cf.Task(
# only a1 and a2 can mark the task as successful
completion_agents=[a1, a2],
)
```
```
2 changes: 1 addition & 1 deletion docs/welcome.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ import random

def roll_dice(num_dice: int) -> list[int]:
"""Roll multiple dice and return the results."""
return [random.randint(1, 6) for * in range(num_dice)]
return [random.randint(1, 6) for _ in range(num_dice)]

result = cf.run("Roll 3 dice and return the results", tools=[roll_dice])

Expand Down

0 comments on commit 2dac05a

Please sign in to comment.