bfh-studadmin-assist / test_agent.py
awellis's picture
Refactor document ingestion and processing; update configurations for chunking and retrieval, enhance error logging, and implement markdown-aware chunking
78a356b
raw
history blame contribute delete
420 Bytes
"""Quick test to see what's failing."""
import asyncio
from src.config import get_config
from src.agents.intent_agent import IntentAgent
async def test():
config = get_config()
agent = IntentAgent(api_key=config.llm.api_key, model=f"openai:{config.llm.model_name}")
result = await agent.extract_intent("Wie kann ich mich exmatrikulieren?")
print("SUCCESS!")
print(result)
asyncio.run(test())