Spaces:
Sleeping
Sleeping
Download src/agents/qdrantretrieveuserproxyagent.py from genaitiwari/AutogenMultiAgent: direct link, hf CLI and curl.
- Browser
- Download file 452 Bytes
-
https://huggingface.co/spaces/genaitiwari/AutogenMultiAgent/resolve/main/src/agents/qdrantretrieveuserproxyagent.py
- Command line
-
hf download hf://spaces/genaitiwari/AutogenMultiAgent/src/agents/qdrantretrieveuserproxyagent.py
-
curl -L -o qdrantretrieveuserproxyagent.py https://huggingface.co/spaces/genaitiwari/AutogenMultiAgent/resolve/main/src/agents/qdrantretrieveuserproxyagent.py
452 Bytes
| from autogen import UserProxyAgent | |
| import streamlit as st | |
| from autogen.agentchat.contrib.qdrant_retrieve_user_proxy_agent import QdrantRetrieveUserProxyAgent | |
| class TrackableQdrantRetrieveUserProxyAgent(QdrantRetrieveUserProxyAgent): | |
| def _process_received_message(self, message, sender, silent): | |
| with st.chat_message("ai"): | |
| st.write(message["content"]) | |
| return super()._process_received_message(message, sender, silent) | |