Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -212,35 +212,40 @@ with gr.Blocks() as demo:
|
|
| 212 |
)
|
| 213 |
|
| 214 |
gr.Markdown("""
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 243 |
""")
|
|
|
|
| 244 |
run_btn = gr.Button("π Run Agent on Random Stack")
|
| 245 |
true_order = gr.Textbox(label="True Material Order")
|
| 246 |
prompt_box = gr.Textbox(label="Agent Prompt")
|
|
|
|
| 212 |
)
|
| 213 |
|
| 214 |
gr.Markdown("""
|
| 215 |
+
### π€ Multi-Agent System Overview
|
| 216 |
+
|
| 217 |
+
#### π§ Coordinator Agent: `CodeAgent | openai/gpt-4.1-mini`
|
| 218 |
+
|
| 219 |
+
- β
**Authorized Imports**: `['numpy']`
|
| 220 |
+
|
| 221 |
+
##### π οΈ Tools:
|
| 222 |
+
| Tool | Description | Arguments |
|
| 223 |
+
|--------------------|--------------------------------------------|-------------------------------------------|
|
| 224 |
+
| `cosine_similarity`| Computes the cosine similarity between two vectors | `vec1`, `vec2`: Lists of floats |
|
| 225 |
+
|
| 226 |
+
#### π§ Managed Agent: `agent_10nm_simulator | CodeAgent | openai/gpt-4.1-mini`
|
| 227 |
+
|
| 228 |
+
- β
**Authorized Imports**: `[]`
|
| 229 |
+
- π **Description**: Simulates optical spectra for **10nm** thickness.
|
| 230 |
+
|
| 231 |
+
##### π οΈ Tools:
|
| 232 |
+
| Tool | Description | Arguments |
|
| 233 |
+
|-----------------------|----------------------------------------------|--------------------------------------------|
|
| 234 |
+
| `simulate_spectrum_10nm` | Simulates spectrum for 10nm layers. | `layer_order`: List of materials |
|
| 235 |
+
|
| 236 |
+
---
|
| 237 |
+
|
| 238 |
+
#### π§ Managed Agent: `agent_100nm_simulator | CodeAgent | openai/gpt-4.1-mini`
|
| 239 |
+
|
| 240 |
+
- β
**Authorized Imports**: `[]`
|
| 241 |
+
- π **Description**: Simulates optical spectra for **100nm** thickness.
|
| 242 |
+
|
| 243 |
+
##### π οΈ Tools:
|
| 244 |
+
| Tool | Description | Arguments |
|
| 245 |
+
|------------------------|-----------------------------------------------|--------------------------------------------|
|
| 246 |
+
| `simulate_spectrum_100nm` | Simulates spectrum for 100nm layers. | `layer_order`: List of materials |
|
| 247 |
""")
|
| 248 |
+
|
| 249 |
run_btn = gr.Button("π Run Agent on Random Stack")
|
| 250 |
true_order = gr.Textbox(label="True Material Order")
|
| 251 |
prompt_box = gr.Textbox(label="Agent Prompt")
|