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
returnf"Error processing your mathematical query: {str(e)}"
111
111
```
112
-
**Each specialized agent has a distinct system prompt, and tools in its inventory, and follows this general pattern.
112
+
Each specialized agent has a distinct system prompt, and tools in its inventory, and follows this general pattern.
113
+
113
114
-[Language Assistant](https://github.com/strands-agents/docs/blob/main/docs/examples/python/multi_agent_example/language_assistant.py) specializes in queries related to translation into different languages.
114
115
-[Computer Scince Assistant](https://github.com/strands-agents/docs/blob/main/docs/examples/python/multi_agent_example/computer_science_assistant.py) specializes in queries related to writing, editing, running, code and explaining computer science concepts.
115
116
-[English Assistant](https://github.com/strands-agents/docs/blob/main/docs/examples/python/multi_agent_example/english_assistant.py) specializes in queries related to grammar, and english comprehension.
By default, certain tools that perform potentially sensitive operations (like file modifications, shell commands, or code execution) will prompt for user confirmation before executing. This safety feature ensures users maintain control over actions that could modify their system.
68
+
69
+
To bypass these confirmation prompts, you can set the `BYPASS_TOOL_CONSENT` environment variable:
70
+
71
+
```bash
72
+
# Set this environment variable to bypass tool confirmation prompts
73
+
export BYPASS_TOOL_CONSENT=true
74
+
```
75
+
76
+
Setting the environment variable within Python:
77
+
78
+
```python
79
+
import os
80
+
81
+
os.environ["BYPASS_TOOL_CONSENT"] ="true"
82
+
```
83
+
84
+
When this variable is set to `true`, tools will execute without asking for confirmation. This is particularly useful for:
85
+
86
+
- Automated workflows where user interaction isn't possible
87
+
- Development and testing environments
88
+
- CI/CD pipelines
89
+
- Situations where you've already validated the safety of operations
90
+
91
+
**Note:** Use this feature with caution in production environments, as it removes an important safety check.
0 commit comments