Skip to content

Commit ce2287e

Browse files
deploy: 9777988
1 parent 2ae6d02 commit ce2287e

File tree

5 files changed

+88
-37
lines changed

5 files changed

+88
-37
lines changed

.doctrees/environment.pickle

750 Bytes
Binary file not shown.

.doctrees/index.doctree

2.04 KB
Binary file not shown.

_sources/index.rst.txt

Lines changed: 47 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ Installation
2323
Flows
2424
~~~~~~
2525

26-
In both flows of single and multiple agents - it is one user query to one agent using one tool (if needed).
26+
In both flows of single and multiple agents - it is one user query to one agent using one or many tools (if needed).
2727

28-
An agent can have multiple tools and will choose the best one to answer the user query.
28+
An agent can have multiple tools and will choose the best ones to fulfill the user's query.
2929

30-
Routing is determined by optimal domain expertise of the agent for the user query.
30+
Routing is determined by optimal domain expertise of the agent for the user's query.
3131

32-
When the agent uses a tool it feeds the tool output back into the agent to generate the final response.
32+
When the agent uses tools it feeds the tools output back to itself to generate the final response.
3333

3434
This is important as tools generally output unstructured and unformatted data that the agent needs to prepare for the user.
3535

@@ -39,27 +39,27 @@ Keep this in mind while designing your agentic systems using Solana Agent.
3939
4040
Single Agent
4141
42-
┌────────┐ ┌─────────┐ ┌────────┐
43-
│ │ │ │ │ │
44-
│ │ │ │ │ │
45-
│ User │◄──────►│ Agent │◄──────►│ Tool
46-
│ │ │ │ │ │
47-
│ │ │ │ │ │
48-
└────────┘ └─────────┘ └────────┘
42+
┌────────┐ ┌─────────┐ ┌────────-
43+
│ │ │ │ │
44+
│ │ │ │ │
45+
│ User │◄──────►│ Agent │◄──────►│ Tools
46+
│ │ │ │ │
47+
│ │ │ │ │
48+
└────────┘ └─────────┘ └────────-
4949
5050
5151
5252
5353
5454
Multiple Agents
5555
56-
┌────────┐ ┌──────────┐ ┌─────────┐ ┌────────┐
57-
│ │ │ │ │ │ │ │
58-
│ │ │ │ │ │ │ │
59-
┌───►│ User ├───────►│ Router ├───────►│ Agent │◄──────►│ Tool
60-
│ │ │ │ │ │ │ │ │
61-
│ │ │ │ │ │ │ │ │
62-
│ └────────┘ └──────────┘ └────┬────┘ └────────┘
56+
┌────────┐ ┌──────────┐ ┌─────────┐ ┌────────-
57+
│ │ │ │ │ │ │
58+
│ │ │ │ │ │ │
59+
┌───►│ User ├───────►│ Router ├───────►│ Agent │◄──────►│ Tools
60+
│ │ │ │ │ │ │ │
61+
│ │ │ │ │ │ │ │
62+
│ └────────┘ └──────────┘ └────┬────┘ └────────-
6363
│ │
6464
│ │
6565
│ │
@@ -332,6 +332,35 @@ Observability and Tracing - Optional
332332
},
333333
}
334334
335+
336+
Grok - Optional
337+
~~~~~~~~~~~~~~~~
338+
339+
`grok-3-fast` can be used instead of `gpt-4.1` for the agent model
340+
341+
.. code-block:: python
342+
343+
config = {
344+
"grok": {
345+
"api_key": "your-grok-api-key",
346+
},
347+
}
348+
349+
350+
Gemini - Optional
351+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
352+
353+
`gemini-2.5-pro-preview-03-25` can be used instead of `gpt-4.1` for the agent model
354+
355+
.. code-block:: python
356+
357+
config = {
358+
"gemini": {
359+
"api_key": "your-gemini-api-key",
360+
},
361+
}
362+
363+
335364
Knowledge Base - Optional
336365
~~~~~~~~~~~~~~~~~~~~~~~~~~~
337366

index.html

Lines changed: 40 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -93,35 +93,35 @@ <h3>Installation<a class="headerlink" href="#installation" title="Link to this h
9393
</section>
9494
<section id="flows">
9595
<h3>Flows<a class="headerlink" href="#flows" title="Link to this heading"></a></h3>
96-
<p>In both flows of single and multiple agents - it is one user query to one agent using one tool (if needed).</p>
97-
<p>An agent can have multiple tools and will choose the best one to answer the user query.</p>
98-
<p>Routing is determined by optimal domain expertise of the agent for the user query.</p>
99-
<p>When the agent uses a tool it feeds the tool output back into the agent to generate the final response.</p>
96+
<p>In both flows of single and multiple agents - it is one user query to one agent using one or many tools (if needed).</p>
97+
<p>An agent can have multiple tools and will choose the best ones to fulfill the user’s query.</p>
98+
<p>Routing is determined by optimal domain expertise of the agent for the user’s query.</p>
99+
<p>When the agent uses tools it feeds the tools output back to itself to generate the final response.</p>
100100
<p>This is important as tools generally output unstructured and unformatted data that the agent needs to prepare for the user.</p>
101101
<p>Keep this in mind while designing your agentic systems using Solana Agent.</p>
102102
<div class="highlight-ascii notranslate"><div class="highlight"><pre><span></span> Single Agent
103103

104-
┌────────┐ ┌─────────┐ ┌────────┐
105-
│ │ │ │ │ │
106-
│ │ │ │ │ │
107-
│ User │◄──────►│ Agent │◄──────►│ Tool
108-
│ │ │ │ │ │
109-
│ │ │ │ │ │
110-
└────────┘ └─────────┘ └────────┘
104+
┌────────┐ ┌─────────┐ ┌────────-
105+
│ │ │ │ │
106+
│ │ │ │ │
107+
│ User │◄──────►│ Agent │◄──────►│ Tools
108+
│ │ │ │ │
109+
│ │ │ │ │
110+
└────────┘ └─────────┘ └────────-
111111

112112

113113

114114

115115

116116
Multiple Agents
117117

118-
┌────────┐ ┌──────────┐ ┌─────────┐ ┌────────┐
119-
│ │ │ │ │ │ │ │
120-
│ │ │ │ │ │ │ │
121-
┌───►│ User ├───────►│ Router ├───────►│ Agent │◄──────►│ Tool
122-
│ │ │ │ │ │ │ │ │
123-
│ │ │ │ │ │ │ │ │
124-
│ └────────┘ └──────────┘ └────┬────┘ └────────┘
118+
┌────────┐ ┌──────────┐ ┌─────────┐ ┌────────-
119+
│ │ │ │ │ │ │
120+
│ │ │ │ │ │ │
121+
┌───►│ User ├───────►│ Router ├───────►│ Agent │◄──────►│ Tools
122+
│ │ │ │ │ │ │ │
123+
│ │ │ │ │ │ │ │
124+
│ └────────┘ └──────────┘ └────┬────┘ └────────-
125125
│ │
126126
│ │
127127
│ │
@@ -378,6 +378,28 @@ <h3>Observability and Tracing - Optional<a class="headerlink" href="#observabili
378378
</pre></div>
379379
</div>
380380
</section>
381+
<section id="grok-optional">
382+
<h3>Grok - Optional<a class="headerlink" href="#grok-optional" title="Link to this heading"></a></h3>
383+
<p><cite>grok-3-fast</cite> can be used instead of <cite>gpt-4.1</cite> for the agent model</p>
384+
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">config</span> <span class="o">=</span> <span class="p">{</span>
385+
<span class="s2">&quot;grok&quot;</span><span class="p">:</span> <span class="p">{</span>
386+
<span class="s2">&quot;api_key&quot;</span><span class="p">:</span> <span class="s2">&quot;your-grok-api-key&quot;</span><span class="p">,</span>
387+
<span class="p">},</span>
388+
<span class="p">}</span>
389+
</pre></div>
390+
</div>
391+
</section>
392+
<section id="gemini-optional">
393+
<h3>Gemini - Optional<a class="headerlink" href="#gemini-optional" title="Link to this heading"></a></h3>
394+
<p><cite>gemini-2.5-pro-preview-03-25</cite> can be used instead of <cite>gpt-4.1</cite> for the agent model</p>
395+
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">config</span> <span class="o">=</span> <span class="p">{</span>
396+
<span class="s2">&quot;gemini&quot;</span><span class="p">:</span> <span class="p">{</span>
397+
<span class="s2">&quot;api_key&quot;</span><span class="p">:</span> <span class="s2">&quot;your-gemini-api-key&quot;</span><span class="p">,</span>
398+
<span class="p">},</span>
399+
<span class="p">}</span>
400+
</pre></div>
401+
</div>
402+
</section>
381403
<section id="knowledge-base-optional">
382404
<h3>Knowledge Base - Optional<a class="headerlink" href="#knowledge-base-optional" title="Link to this heading"></a></h3>
383405
<p>The Knowledge Base (KB) is meant to store text values and/or small PDFs.</p>

0 commit comments

Comments
 (0)