You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -471,18 +471,19 @@ config = {
471
471
},
472
472
"agents": [
473
473
{
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
483
478
}
484
479
],
485
480
}
481
+
482
+
solana_agent = SolanaAgent(config=config)
483
+
484
+
asyncfor response in solana_agent.process("user123", "What is the latest news on Elon Musk?"):
Copy file name to clipboardExpand all lines: docs/index.rst
+7-12Lines changed: 7 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -416,7 +416,7 @@ Internet Search
416
416
pip install sakit
417
417
418
418
.. code-block:: python
419
-
419
+
420
420
from solana_agent import SolanaAgent
421
421
422
422
config = {
@@ -425,27 +425,22 @@ Internet Search
425
425
},
426
426
"tools": {
427
427
"search_internet": {
428
-
"api_key": "your-openai-api-key",
428
+
"api_key": "your-openai-api-key",
429
429
},
430
430
},
431
431
"agents": [
432
432
{
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
442
437
}
443
438
],
444
439
}
445
440
446
441
solana_agent = SolanaAgent(config=config)
447
442
448
-
asyncfor response in solana_agent.process("user123", "What are the latest AI developments?"):
443
+
asyncfor response in solana_agent.process("user123", "What is the latest news on Elon Musk?"):
0 commit comments