Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /rubelw_OSSS /scripts /debug_router_agent.py
| #!/usr/bin/env python | |
| import asyncio | |
| from OSSS.ai.router_agent import RouterAgent, RAGRequest, ChatMessage | |
| from OSSS.ai.session_store import get_or_create_session | |
| async def main(): | |
| session = get_or_create_session(None) | |
| rag = RAGRequest( | |
| messages=[ | |
| ChatMessage(role="user", content="Who is the DCG superintendent?"), | |
| ], | |
| index="main", | |
| ) | |
| agent = RouterAgent() | |
| result = await agent.run(rag=rag, session=session, session_files=[]) | |
| print("ANSWER:", result["answer"]) | |
| print("INTENT:", result.get("intent")) | |
| print("AGENT TRACE:", result.get("agent_trace")) | |
| if __name__ == "__main__": | |
| asyncio.run(main()) | |
Xet Storage Details
- Size:
- 673 Bytes
- Xet hash:
- d41ffec6f14dec9451a40aa9d5b57282a4a68150dd2c40a49ffa71f9833d128f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.