Skip to content

Commit 8e35a81

Browse files
authored
[Breaking Change] Merge pull request #16 from XpressAI/fahreza/simple-tool-orchestrator
♻️ Rename StressToolUser -> SimpleToolOrchestrator
2 parents 5a7f7e1 + eb5e8cf commit 8e35a81

File tree

23 files changed

+77
-77
lines changed

23 files changed

+77
-77
lines changed

docs/explanation/architecture/dependency-injection.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ More subtly, the dependencies aren't visible from the outside. If you want to te
2323
Xaibo takes a different approach. Components declare their dependencies explicitly in their constructor signatures:
2424

2525
```python
26-
class StressingToolUser:
26+
class SimpleToolOrchestrator:
2727
def __init__(self,
2828
response: ResponseProtocol,
2929
llm: LLMProtocol,
@@ -53,13 +53,13 @@ modules:
5353
id: llm
5454
config:
5555
model: gpt-4
56-
- module: xaibo.primitives.modules.orchestrator.StressingToolUser
56+
- module: xaibo.primitives.modules.orchestrator.SimpleToolOrchestrator
5757
id: orchestrator
5858
config:
5959
max_thoughts: 10
6060
```
6161
62-
The exchange system analyzes the constructor signatures of these modules, identifies their dependencies, and automatically creates the necessary connections. The `StressingToolUser` needs an `LLMProtocol`, and the `OpenAILLM` provides one, so the exchange system injects the LLM instance into the orchestrator.
62+
The exchange system analyzes the constructor signatures of these modules, identifies their dependencies, and automatically creates the necessary connections. The `SimpleToolOrchestrator` needs an `LLMProtocol`, and the `OpenAILLM` provides one, so the exchange system injects the LLM instance into the orchestrator.
6363

6464
## Automatic Dependency Resolution
6565

docs/how-to/llm/switch-providers.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ modules:
2121
api_key: ${OPENAI_API_KEY} # Optional, uses env var by default
2222
temperature: 0.7
2323
max_tokens: 2000
24-
- module: xaibo.primitives.modules.orchestrator.StressingToolUser
24+
- module: xaibo.primitives.modules.orchestrator.SimpleToolOrchestrator
2525
id: orchestrator
2626
```
2727
@@ -50,7 +50,7 @@ modules:
5050
api_key: ${ANTHROPIC_API_KEY}
5151
temperature: 0.7
5252
max_tokens: 4000
53-
- module: xaibo.primitives.modules.orchestrator.StressingToolUser
53+
- module: xaibo.primitives.modules.orchestrator.SimpleToolOrchestrator
5454
id: orchestrator
5555
```
5656
@@ -80,7 +80,7 @@ modules:
8080
api_key: ${GOOGLE_API_KEY}
8181
temperature: 0.7
8282
max_tokens: 2000
83-
- module: xaibo.primitives.modules.orchestrator.StressingToolUser
83+
- module: xaibo.primitives.modules.orchestrator.SimpleToolOrchestrator
8484
id: orchestrator
8585
```
8686
@@ -111,7 +111,7 @@ modules:
111111
aws_secret_access_key: ${AWS_SECRET_ACCESS_KEY}
112112
temperature: 0.7
113113
max_tokens: 4000
114-
- module: xaibo.primitives.modules.orchestrator.StressingToolUser
114+
- module: xaibo.primitives.modules.orchestrator.SimpleToolOrchestrator
115115
id: orchestrator
116116
```
117117
@@ -139,7 +139,7 @@ modules:
139139
base_url: https://your-custom-endpoint.com/v1
140140
api_key: ${CUSTOM_API_KEY}
141141
timeout: 120.0
142-
- module: xaibo.primitives.modules.orchestrator.StressingToolUser
142+
- module: xaibo.primitives.modules.orchestrator.SimpleToolOrchestrator
143143
id: orchestrator
144144
```
145145

docs/how-to/memory/setup-vector-memory.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ modules:
5252
config:
5353
memory_file_path: "./agent_memory.pkl"
5454

55-
- module: xaibo.primitives.modules.orchestrator.StressingToolUser
55+
- module: xaibo.primitives.modules.orchestrator.SimpleToolOrchestrator
5656
id: orchestrator
5757
config:
5858
system_prompt: |

docs/how-to/tools/mcp-tools.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ modules:
2424
transport: stdio
2525
command: ["python", "-m", "mcp_server_filesystem"]
2626
args: ["--root", "/workspace"]
27-
- module: xaibo.primitives.modules.orchestrator.StressingToolUser
27+
- module: xaibo.primitives.modules.orchestrator.SimpleToolOrchestrator
2828
id: orchestrator
2929
config:
3030
max_thoughts: 10
@@ -146,7 +146,7 @@ modules:
146146
url: "ws://localhost:8080/mcp"
147147
headers:
148148
X-Database-Key: "your-db-key"
149-
- module: xaibo.primitives.modules.orchestrator.StressingToolUser
149+
- module: xaibo.primitives.modules.orchestrator.SimpleToolOrchestrator
150150
id: orchestrator
151151
config:
152152
system_prompt: |

docs/how-to/tools/python-tools.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ modules:
5656
module: xaibo.primitives.modules.tools.PythonToolProvider
5757
config:
5858
tool_packages: [tools.my_tools]
59-
- module: xaibo.primitives.modules.orchestrator.StressingToolUser
59+
- module: xaibo.primitives.modules.orchestrator.SimpleToolOrchestrator
6060
id: orchestrator
6161
config:
6262
max_thoughts: 10
@@ -214,7 +214,7 @@ modules:
214214
- tools.my_tools
215215
- tools.advanced_tools
216216
- tools.robust_tools
217-
- module: xaibo.primitives.modules.orchestrator.StressingToolUser
217+
- module: xaibo.primitives.modules.orchestrator.SimpleToolOrchestrator
218218
id: orchestrator
219219
```
220220

docs/reference/agent-config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ modules:
231231
command: ["python", "-m", "mcp_server_filesystem"]
232232
args: ["--root", "/workspace"]
233233
234-
- module: xaibo.primitives.modules.orchestrator.StressingToolUser
234+
- module: xaibo.primitives.modules.orchestrator.SimpleToolOrchestrator
235235
id: orchestrator
236236
config:
237237
max_thoughts: 10

docs/reference/modules/orchestrator.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
Orchestrator modules coordinate agent behavior by managing interactions between LLMs, tools, and memory systems. They implement the core agent logic and decision-making processes.
44

5-
## StressingToolUser
5+
## SimpleToolOrchestrator
66

77
An orchestrator that processes user messages by leveraging an LLM to generate responses and potentially use tools. If tool execution fails, it increases the temperature (stress level) for subsequent LLM calls, simulating cognitive stress.
88

9-
**Source**: [`src/xaibo/primitives/modules/orchestrator/stressing_tool_user.py`](https://github.com/xpressai/xaibo/blob/main/src/xaibo/primitives/modules/orchestrator/stressing_tool_user.py)
9+
**Source**: [`src/xaibo/primitives/modules/orchestrator/simple_tool_orchestrator.py`](https://github.com/xpressai/xaibo/blob/main/src/xaibo/primitives/modules/orchestrator/simple_tool_orchestrator.py)
1010

11-
**Module Path**: `xaibo.primitives.modules.orchestrator.StressingToolUser`
11+
**Module Path**: `xaibo.primitives.modules.orchestrator.SimpleToolOrchestrator`
1212

1313
**Dependencies**: None
1414

@@ -69,7 +69,7 @@ modules:
6969
config:
7070
tool_packages: [tools.weather, tools.calendar]
7171

72-
- module: xaibo.primitives.modules.orchestrator.StressingToolUser
72+
- module: xaibo.primitives.modules.orchestrator.SimpleToolOrchestrator
7373
id: orchestrator
7474
config:
7575
max_thoughts: 15
@@ -92,7 +92,7 @@ exchange:
9292
9393
### Behavior
9494
95-
The StressingToolUser follows this process:
95+
The SimpleToolOrchestrator follows this process:
9696
9797
1. **Conversation Setup**: Retrieves conversation history and adds system prompt if configured
9898
2. **User Message Processing**: Adds the user's message to the conversation
@@ -130,10 +130,10 @@ When tools are called:
130130
### Example Usage
131131

132132
```python
133-
from xaibo.primitives.modules.orchestrator.stressing_tool_user import StressingToolUser
133+
from xaibo.primitives.modules.orchestrator.simple_tool_orchestrator import SimpleToolOrchestrator
134134
135135
# Initialize with dependencies
136-
orchestrator = StressingToolUser(
136+
orchestrator = SimpleToolOrchestrator(
137137
response=response_handler,
138138
llm=llm_provider,
139139
tool_provider=tool_provider,

docs/tutorial/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ modules:
8080
id: python-tools
8181
config:
8282
tool_packages: [tools.example]
83-
- module: xaibo.primitives.modules.orchestrator.StressingToolUser
83+
- module: xaibo.primitives.modules.orchestrator.SimpleToolOrchestrator
8484
id: orchestrator
8585
config:
8686
max_thoughts: 10

docs/tutorial/understanding-protocols.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ modules:
3232
id: python-tools
3333
config:
3434
tool_packages: [tools.example]
35-
- module: xaibo.primitives.modules.orchestrator.StressingToolUser
35+
- module: xaibo.primitives.modules.orchestrator.SimpleToolOrchestrator
3636
id: orchestrator
3737
config:
3838
max_thoughts: 10
@@ -187,7 +187,7 @@ modules:
187187
id: python-tools
188188
config:
189189
tool_packages: [tools.example]
190-
- module: xaibo.primitives.modules.orchestrator.StressingToolUser
190+
- module: xaibo.primitives.modules.orchestrator.SimpleToolOrchestrator
191191
id: orchestrator
192192
config:
193193
max_thoughts: 10
@@ -242,7 +242,7 @@ modules:
242242
id: python-tools
243243
config:
244244
tool_packages: [tools.example]
245-
- module: xaibo.primitives.modules.orchestrator.StressingToolUser
245+
- module: xaibo.primitives.modules.orchestrator.SimpleToolOrchestrator
246246
id: orchestrator
247247
config:
248248
max_thoughts: 10
@@ -326,7 +326,7 @@ modules:
326326
tool_packages: [tools.math_tools]
327327
- module: xaibo.primitives.modules.tools.ToolCollector
328328
id: all-tools
329-
- module: xaibo.primitives.modules.orchestrator.StressingToolUser
329+
- module: xaibo.primitives.modules.orchestrator.SimpleToolOrchestrator
330330
id: orchestrator
331331
config:
332332
max_thoughts: 10

examples/google_calendar_example/agents/example.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ modules:
99
module: xaibo.primitives.modules.tools.PythonToolProvider
1010
config:
1111
tool_packages: [tools.calendar_tools]
12-
- module: xaibo.primitives.modules.orchestrator.StressingToolUser
12+
- module: xaibo.primitives.modules.orchestrator.SimpleToolOrchestrator
1313
id: orchestrator
1414
config:
1515
max_thoughts: 10

0 commit comments

Comments
 (0)