Skip to content

Commit 342a31d

Browse files
update readme and docs
1 parent c3527e1 commit 342a31d

File tree

2 files changed

+17
-21
lines changed

2 files changed

+17
-21
lines changed

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -471,18 +471,19 @@ config = {
471471
},
472472
"agents": [
473473
{
474-
"name": "research_specialist",
475-
"instructions": "You are an expert researcher who synthesizes complex information clearly. You use your search_internet tool to get the latest information.",
476-
"specialization": "Research and knowledge synthesis",
477-
"tools": ["search_internet"],
478-
},
479-
{
480-
"name": "customer_support",
481-
"instructions": "You provide friendly, helpful customer support responses.",
482-
"specialization": "Customer inquiries",
474+
"name": "news_specialist",
475+
"instructions": "You are an expert news agent. You use your search_internet tool to get the latest information.",
476+
"specialization": "News researcher and specialist",
477+
"tools": ["search_internet"], # Enable the tool for this agent
483478
}
484479
],
485480
}
481+
482+
solana_agent = SolanaAgent(config=config)
483+
484+
async for response in solana_agent.process("user123", "What is the latest news on Elon Musk?"):
485+
print(response, end="")
486+
486487
```
487488

488489
### Inline Tool Example

docs/index.rst

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ Internet Search
416416
pip install sakit
417417
418418
.. code-block:: python
419-
419+
420420
from solana_agent import SolanaAgent
421421
422422
config = {
@@ -425,27 +425,22 @@ Internet Search
425425
},
426426
"tools": {
427427
"search_internet": {
428-
"api_key": "your-openai-api-key",
428+
"api_key": "your-openai-api-key",
429429
},
430430
},
431431
"agents": [
432432
{
433-
"name": "research_specialist",
434-
"instructions": "You are an expert researcher who synthesizes complex information clearly. You use your search_internet tool to get the latest information.",
435-
"specialization": "Research and knowledge synthesis",
436-
"tools": ["search_internet"],
437-
},
438-
{
439-
"name": "customer_support",
440-
"instructions": "You provide friendly, helpful customer support responses.",
441-
"specialization": "Customer inquiries",
433+
"name": "news_specialist",
434+
"instructions": "You are an expert news agent. You use your search_internet tool to get the latest information.",
435+
"specialization": "News researcher and specialist",
436+
"tools": ["search_internet"], # Enable the tool for this agent
442437
}
443438
],
444439
}
445440
446441
solana_agent = SolanaAgent(config=config)
447442
448-
async for response in solana_agent.process("user123", "What are the latest AI developments?"):
443+
async for response in solana_agent.process("user123", "What is the latest news on Elon Musk?"):
449444
print(response, end="")
450445
451446

0 commit comments

Comments
 (0)