chore: add trace msg to llm processor

This commit is contained in:
Jan Häusler 2025-07-03 01:42:42 +02:00
parent b185ac664b
commit 6bf446f43d

View file

@ -142,6 +142,7 @@ class LLMProcessor:
try: try:
if not self.anthropic or not self.session: if not self.anthropic or not self.session:
error = "LLM or MCP session not initialized" error = "LLM or MCP session not initialized"
print("trace: ", error)
print(error) print(error)
if callback: if callback:
callback(error) callback(error)
@ -156,6 +157,8 @@ class LLMProcessor:
} }
] ]
print("trace: sending request to LLM", messages)
# Initial LLM call # Initial LLM call
response = self.anthropic.messages.create( response = self.anthropic.messages.create(
model="claude-3-5-sonnet-20241022", model="claude-3-5-sonnet-20241022",