Skip to content

Commit 2bb3e80

Browse files
Joshua CroftJoshua Croft
authored andcommitted
merge
1 parent 2ec6ab9 commit 2bb3e80

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

pages/concepts.mdx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import HotelTasksGoThroughTheEngineToRepresentativeAgents from 'src/images/conce
1212
import DarkHotelTasksGoThroughTheEngineToRepresentativeAgents from 'src/images/concepts/ai-engine/dark_hotel_tasks_go_through_the_engine_to_representative_agents.svg';
1313
import { Callout } from 'nextra/components'
1414

15-
# Introducing Fetch.ai;
15+
# Introducing Fetch.ai;
1616

1717
Fetch.ai is developing a platform to enable the development of an AI empowered agent based decentralized digital economy. Agents are programs that can make choices on their own for individuals, companies, and devices. Agents are the 'doers' of Fetch.ai ecosystem.
1818

@@ -52,7 +52,7 @@ At a high level, the system isn't too complicated, but let's get into the detail
5252
Agents are programs designed to operate freely and communicate with whomever they're programmed to. Agents can connect, search, and transact in order to create dynamic markets, and they can be programmed to interact both within their environment and with other agents in the network. Because they're siloed, and decentralized they can safely accomplish particular activities and objectives without requiring human participation. We have a very simple guide in our documentation that gets you started on building an agent to be part [of the network ↗️](/guides/agents/getting-started/create-a-uagent).
5353

5454

55-
At the simplest level, and agent would work as follows:
55+
At the simplest level, and agent would work as follows:
5656

5757
<ImageByTheme
5858
darkSrc={DarkHighLevelDiagram}
@@ -66,21 +66,21 @@ Of course, many agents in the above workflow can come together to become multi-a
6666

6767

6868

69-
A simple Agent using the uAgents library could be:
69+
A simple Agent using the uAgents library could be:
7070

7171
```
7272
from uagents import Agent, Context, Model
73-
73+
7474
agent = Agent(name="concept", seed="secret_seed_phrase_concept", endpoint="127.0.0.1", port="8001")
7575
7676
class Message(Model):
7777
message : str
7878
79-
79+
8080
@agent.on_message(model=Message)
8181
async def print_message(ctx: Context, msg : Message):
8282
ctx.logger.info(f"Message received: {msg.message}")
83-
83+
8484
if __name__ == "__main__":
8585
agent.run()
8686
```
@@ -105,29 +105,29 @@ Agents thrive on iOT devices such as Raspberry Pi, and there are some great exam
105105
height={400}
106106
/>
107107

108-
FET token is the necessary payment token to create economic opportunity to your agents. FET allows for token transactions of a tiny size 10^-18 of a FET, we call this a nano fet. This system is built for agent economic gain, the best agents should be profitable.
108+
FET token is the necessary payment token to create economic opportunity to your agents. FET allows for token transactions of a tiny size 10^-18 of a FET, we call this a nano fet. This system is built for agent economic gain, the best agents should be profitable.
109109

110110

111111
```
112112
from uagents import Agent, Bureau, Context, Model
113113
from uagents.network import wait_for_tx_to_complete
114114
from uagents.setup import fund_agent_if_low
115-
116-
...
115+
116+
...
117117
118118
@agent.on_message(model=PaymentRequest, replies=TransactionInfo)
119119
async def send_payment(ctx: Context, sender: str, msg: PaymentRequest):
120120
ctx.logger.info(f"Received payment request from {sender}: {msg}")
121-
121+
122122
# send the payment
123123
transaction = ctx.ledger.send_tokens(
124124
msg.wallet_address, msg.amount, msg.denom, bob.wallet
125125
)
126-
126+
127127
# send the tx hash so other agent can confirm
128128
await ctx.send(alice.address, TransactionInfo(tx_hash=transaction.tx_hash))
129-
130-
129+
130+
131131
...
132132
```
133133

@@ -174,7 +174,7 @@ We developed Agentverse because we have the requirements for a cloud-based servi
174174

175175
### Integration with wallets
176176

177-
As we touched on earlier, FET payments between agents are embedded into the uAgents library, as in an open decentralized marketplace it is essential that agents can transact. What we didn’t cover is that by default the uAgents library has support for Fetch.ai wallets. This means that not only can agents interact with the Fetch.ai Ledger to send and receive transactions but it can also query balances, interact with smart contracts, and deploy them.
177+
As we touched on earlier, FET payments between agents are embedded into the uAgents library, as in an open decentralized marketplace it is essential that agents can transact. What we didn’t cover is that by default the uAgents library has support for Fetch.ai wallets. This means that not only can agents interact with the Fetch.ai Ledger to send and receive transactions but it can also query balances, interact with smart contracts, and deploy them.
178178

179179
This integration with the network also strengthens the trust system within the Agentverse and allows you to query transactions performed by any Agent. You can easily see transactions against an agent address, which allows you to infer the history, or trust of an agent. Of course, there are agents for that too.
180180

@@ -185,7 +185,7 @@ As Agents are open source you can integrate any payment provider you like, from
185185
### Deploy and run Agents
186186

187187
When it comes to deploying an agent on Agentverse, it's a simple process from start to deploy. You can either choose to build an Agent from a blank script, or you can choose to create your Agent based on a specified template.
188-
On Agentverse.ai you will see we have a My Agents tab, this page allows you to manage your agents and see Agent stats. With a targeted 100% uptime, your Agent will not sleep unless you tell it to. By it being a hosted Agent on the Agentverse, the Agent will always be kept up-to-date on the [Almanac ↗️](/references/contracts/uagents-almanac/almanac-overview) contract.
188+
On Agentverse.ai you will see we have a My Agents tab, this page allows you to manage your agents and see Agent stats. With a targeted 100% uptime, your Agent will not sleep unless you tell it to. By it being a hosted Agent on the Agentverse, the Agent will always be kept up-to-date on the [Almanac ↗️](/references/contracts/uagents-almanac/almanac-overview) contract.
189189

190190
### Scaling
191191

0 commit comments

Comments
 (0)