Samee-ur commited on
Commit
e822121
Β·
verified Β·
1 Parent(s): 5a79e72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +33 -28
app.py CHANGED
@@ -212,35 +212,40 @@ with gr.Blocks() as demo:
212
  )
213
 
214
  gr.Markdown("""
215
- CodeAgent | openai/gpt-4.1-mini
216
- β”œβ”€β”€ βœ… Authorized imports: ['numpy']
217
- β”œβ”€β”€ πŸ› οΈ Tools:
218
- β”‚ ┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
219
- β”‚ ┃ Name ┃ Description ┃ Arguments ┃
220
- β”‚ ┑━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
221
- β”‚ β”‚ cosine_similarity β”‚ Computes the cosine similarity between two β”‚ vec1 (`array`): The first vector. β”‚
222
- β”‚ β”‚ β”‚ vectors. β”‚ vec2 (`array`): The second vector. β”‚
223
- β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
224
- └── πŸ€– Managed agents:
225
- β”œβ”€β”€ agent_10nm_simulator | CodeAgent | openai/gpt-4.1-mini
226
- β”‚ β”œβ”€β”€ βœ… Authorized imports: []
227
- β”‚ β”œβ”€β”€ πŸ“ Description: Simulates optical spectra for 10nm thickness.
228
- β”‚ └── πŸ› οΈ Tools:
229
- β”‚ ┏━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
230
- β”‚ ┃ Name ┃ Description ┃ Arguments ┃
231
- β”‚ ┑━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
232
- β”‚ β”‚ simulate_spectrum_10nm β”‚ Simulates spectrum for 10nm layers. β”‚ layer_order (`array`): List of materials β”‚
233
- β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
234
- └── agent_100nm_simulator | CodeAgent | openai/gpt-4.1-mini
235
- β”œβ”€β”€ βœ… Authorized imports: []
236
- β”œβ”€β”€ πŸ“ Description: Simulates optical spectra for 100nm thickness.
237
- └── πŸ› οΈ Tools:
238
- ┏━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
239
- ┃ Name ┃ Description ┃ Arguments ┃
240
- ┑━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
241
- β”‚ simulate_spectrum_100nm β”‚ Simulates spectrum for 100nm layers.β”‚ layer_order (`array`): List of materials β”‚
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")