chore: add trace msg to llm processor
This commit is contained in:
parent
b185ac664b
commit
6bf446f43d
1 changed files with 3 additions and 0 deletions
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue