Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixNicolaeBucsa committed Dec 11, 2024
1 parent 76ee3df commit c2e3a59
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 8 deletions.
1 change: 1 addition & 0 deletions pages/examples/easy/storage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ Please check out the example code in our [examples repo ↗️](https://github.c
</CodeGroup>



3 changes: 3 additions & 0 deletions pages/examples/intermediate/coin-toss.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,6 @@ Please check out the example code in our [examples repo ↗️](https://github.c
</DocsCode>

</CodeGroup>



1 change: 1 addition & 0 deletions pages/examples/intermediate/multiple-agents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ Please check out the example code in our [examples repo ↗️](https://github.c
</CodeGroup>



1 change: 1 addition & 0 deletions pages/examples/intermediate/news-reading-system.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -506,3 +506,4 @@ Please check out the example code in our [examples repo ↗️](https://github.c
</CodeGroup>



2 changes: 0 additions & 2 deletions pages/examples/intermediate/on-query.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ Please check out the example code in our [examples repo ↗️](https://github.c

## Agent Script

### Agent Script

This agent handles queries related to job searches using SerpAPI. It provides information about available jobs for a job title specified by the user.

<GithubCodeSegment digest="290876dcc3e0d80c6e2cab18a5361e3e">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ A new agent will be created for you:

After clicking on the row of your newly created agent, you should be able to see the source code of your coin toss agent in the editor view:

<GithubCodeSegment digest="e4685fe0651540fa7f29213abfab566d">
<GithubCodeSegment digest="95dbbdeb98a11364a42a50a3374a76d9">
<CodeSegment
path="https://github.com/fetchai/uAgent-Examples/blob/main/5-documentation/guides/agentverse/agentverse-functions/registering-agent-coin-toss/agent.py"
lineStart={1}
lineEnd={30}
lineEnd={40}
hosted={true}
/>
</GithubCodeSegment>
<CodeGroup dynamic hasCopy isLocalHostedFile digest='e4685fe0651540fa7f29213abfab566d'>
<CodeGroup dynamic hasCopy isLocalHostedFile digest='95dbbdeb98a11364a42a50a3374a76d9'>

<DocsCode local={true}>
```py copy filename="agent.py"
Expand Down Expand Up @@ -92,6 +92,16 @@ After clicking on the row of your newly created agent, you should be able to see
message = "You won!"
else:
message = "You lost!"
await ctx.send(
sender, UAgentResponse(message=message, type=UAgentResponseType.FINAL)
)


# Include protocol in agent
agent.include(coin_toss_protocol, publish_manifest=True)

if __name__ == "__main__":
agent.run()

```
</DocsCode>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ Now, a new agent has been created for you:

After clicking on the row of your newly created agent, you should be able to see the source code of your dice roll agent in the editor view:

<GithubCodeSegment digest="a2a880aa9fdfd6f50075009d88eb0362">
<GithubCodeSegment digest="615a48467b60793a7ef8115efd4c21f0">
<CodeSegment
path="https://github.com/fetchai/uAgent-Examples/blob/main/5-documentation/guides/agentverse/creating-agentverse-agents/simple-dice-roll-agent/agent.py"
lineStart={1}
lineEnd={27}
lineEnd={32}
hosted={true}
/>
</GithubCodeSegment>
<CodeGroup dynamic hasCopy isLocalHostedFile digest='a2a880aa9fdfd6f50075009d88eb0362'>
<CodeGroup dynamic hasCopy isLocalHostedFile digest='615a48467b60793a7ef8115efd4c21f0'>

<DocsCode local={true}>
```py copy filename="agent.py"
Expand Down Expand Up @@ -73,6 +73,11 @@ After clicking on the row of your newly created agent, you should be able to see
sender, UAgentResponse(message=message, type=UAgentResponseType.FINAL)
)


agent.include(dice_roll_protocol, publish_manifest=True)

if __name__ == "__main__":
agent.run()

```
</DocsCode>
Expand Down

0 comments on commit c2e3a59

Please sign in to comment.