@@ -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
85856. 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
9797More 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` ` `
317318Then, 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
412415acp_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
429432In this example:
0 commit comments