Skip to content

Commit 5562019

Browse files
committed
docs: fix formatting
1 parent d1a4a59 commit 5562019

File tree

3 files changed

+53
-49
lines changed

3 files changed

+53
-49
lines changed

plugins/acp/examples/agentic/README.md

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,13 @@ def on_evaluate(deliverable: IDeliverable) -> Tuple[bool, str]:
181181
```
182182
Then, pass this function into the plugin:
183183
```Python
184-
acp_plugin = AcpPlugin(AcpPluginOptions(
185-
api_key="your_api_key_here",
186-
acp_token_client=my_token_client,
187-
on_evaluate=on_evaluate # pass here!
188-
))
184+
acp_plugin = AcpPlugin(
185+
AcpPluginOptions(
186+
api_key="your_api_key_here",
187+
acp_token_client=my_token_client,
188+
on_evaluate=on_evaluate # pass here!
189+
)
190+
)
189191
```
190192

191193
### More Realistic Examples
@@ -275,20 +277,20 @@ expired_at = datetime.now(timezone.utc) + timedelta(minutes=self.job_expiry_dura
275277
### Example: Plugin Setup with Job Expiry
276278
```python
277279
acp_plugin = AcpPlugin(
278-
options=AcpPluginOptions(
279-
api_key=os.environ.get("GAME_DEV_API_KEY"),
280-
acp_token_client=AcpToken(
281-
os.environ.get("WHITELISTED_WALLET_PRIVATE_KEY"),
282-
os.environ.get("BUYER_AGENT_WALLET_ADDRESS"),
283-
"https://base-sepolia-rpc.publicnode.com/",
284-
"https://acpx-staging.virtuals.io/api"
285-
),
286-
cluster="hedgefund",
287-
on_evaluate=on_evaluate,
288-
on_phase_change=on_phase_change,
289-
job_expiry_duration_mins = 10 #Job will expire 10 minutes after creation
290-
)
280+
options=AcpPluginOptions(
281+
api_key=os.environ.get("GAME_DEV_API_KEY"),
282+
acp_token_client=AcpToken(
283+
os.environ.get("WHITELISTED_WALLET_PRIVATE_KEY"),
284+
os.environ.get("BUYER_AGENT_WALLET_ADDRESS"),
285+
"https://base-sepolia-rpc.publicnode.com/",
286+
"https://acpx-staging.virtuals.io/api"
287+
),
288+
cluster="hedgefund",
289+
on_evaluate=on_evaluate,
290+
on_phase_change=on_phase_change,
291+
job_expiry_duration_mins = 10 #Job will expire 10 minutes after creation
291292
)
293+
)
292294
```
293295
294296
In this example:

plugins/acp/examples/reactive/README.md

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,16 @@ This step is a critical precursor. Without registration, the counterpart agent w
8383
- Set up your GAME Twitter access token
8484

8585
6. Run the examples:
86-
- Run buyer
86+
- Run buyer
8787

88-
```python
89-
python plugins/acp/examples/reactive/buyer.py
90-
```
91-
- Run seller
88+
```python
89+
python plugins/acp/examples/reactive/buyer.py
90+
```
91+
- Run seller
9292

93-
```python
94-
python plugins/acp/examples/reactive/seller.py
95-
```
93+
```python
94+
python plugins/acp/examples/reactive/seller.py
95+
```
9696

9797
More details on the test buyer and seller scripts are provided in the next section.
9898

@@ -116,10 +116,11 @@ This seller agent:
116116

117117
```python
118118
agent = Agent(
119-
api_key=os.environ.get("GAME_API_KEY"),
120-
name="Memx",
121-
agent_goal="To provide meme generation as a service. You should go to ecosystem worker to respond to any job once you have gotten it as a seller.",
122-
agent_description=f"""You are Memx, a meme generator. Meme generation is your life. You always give buyer the best meme.
119+
api_key=os.environ.get("GAME_API_KEY"),
120+
name="Memx",
121+
agent_goal="To provide meme generation as a service. You should go to ecosystem worker to respond to any job once you have gotten it as a seller.",
122+
agent_description=f"""
123+
You are Memx, a meme generator. Meme generation is your life. You always give buyer the best meme.
123124
124125
{acp_plugin.agent_description}
125126
""",
@@ -316,11 +317,13 @@ def on_evaluate(deliverable: IDeliverable) -> Tuple[bool, str]:
316317
```
317318
Then, pass this function into the plugin:
318319
```Python
319-
acp_plugin = AcpPlugin(AcpPluginOptions(
320-
api_key="your_api_key_here",
321-
acp_token_client=my_token_client,
322-
on_evaluate=on_evaluate # pass here!
323-
))
320+
acp_plugin = AcpPlugin(
321+
AcpPluginOptions(
322+
api_key="your_api_key_here",
323+
acp_token_client=my_token_client,
324+
on_evaluate=on_evaluate # pass here!
325+
)
326+
)
324327
```
325328
326329
### More Realistic Examples
@@ -410,20 +413,20 @@ expired_at = datetime.now(timezone.utc) + timedelta(minutes=self.job_expiry_dura
410413
### Example: Plugin Setup with Job Expiry
411414
```python
412415
acp_plugin = AcpPlugin(
413-
options=AcpPluginOptions(
414-
api_key=os.environ.get("GAME_DEV_API_KEY"),
415-
acp_token_client=AcpToken(
416-
os.environ.get("WHITELISTED_WALLET_PRIVATE_KEY"),
417-
os.environ.get("BUYER_AGENT_WALLET_ADDRESS"),
418-
"https://base-sepolia-rpc.publicnode.com/",
419-
"https://acpx-staging.virtuals.io/api"
420-
),
421-
cluster="hedgefund",
422-
on_evaluate=on_evaluate,
423-
on_phase_change=on_phase_change,
424-
job_expiry_duration_mins = 10 #Job will expire 10 minutes after creation
425-
)
416+
options=AcpPluginOptions(
417+
api_key=os.environ.get("GAME_DEV_API_KEY"),
418+
acp_token_client=AcpToken(
419+
os.environ.get("WHITELISTED_WALLET_PRIVATE_KEY"),
420+
os.environ.get("BUYER_AGENT_WALLET_ADDRESS"),
421+
"https://base-sepolia-rpc.publicnode.com/",
422+
"https://acpx-staging.virtuals.io/api"
423+
),
424+
cluster="hedgefund",
425+
on_evaluate=on_evaluate,
426+
on_phase_change=on_phase_change,
427+
job_expiry_duration_mins = 10 #Job will expire 10 minutes after creation
426428
)
429+
)
427430
```
428431
429432
In this example:

plugins/acp/examples/reactive/buyer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ def on_phase_change(job: AcpJob) -> None:
7575
),
7676
on_evaluate=on_evaluate,
7777
on_phase_change=on_phase_change,
78-
cluster="yang_test",
7978
# GAME Twitter Plugin
8079
twitter_plugin=GameTwitterPlugin(options),
8180
# Native Twitter Plugin

0 commit comments

Comments
 (0)