We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ca1b238 + 162cdac commit a6ef463Copy full SHA for a6ef463
app/src/streamlit_app.py
@@ -1,6 +1,5 @@
1
import streamlit as st
2
-from llama_stack_client.lib.agents.agent import Agent
3
-from llama_stack_client import LlamaStackClient, APIConnectionError
+from llama_stack_client import LlamaStackClient, Agent, APIConnectionError
4
from dotenv import load_dotenv
5
import os
6
import uuid
@@ -46,7 +45,7 @@ def reset_agent():
46
45
47
active_tool_list = []
48
for toolgroup_id in toolgroup_selection:
49
- active_tool_list.extend([t.identifier for t in client.tools.list(toolgroup_id=toolgroup_id)])
+ active_tool_list.extend([f"{toolgroup_id[5:]}:{t.identifier}" for t in client.tools.list(toolgroup_id=toolgroup_id)])
50
51
st.markdown(f"Active Tools: 🛠 {len(active_tool_list)}")
52
st.json(active_tool_list)
0 commit comments