Skip to content

Python SDK for AI agent monitoring, LLM cost tracking, benchmarking, and more. Integrates with most LLMs and agent frameworks including CrewAI, Agno, OpenAI Agents SDK, Langchain, Autogen, AG2, and CamelAI

Fix prompts not rendering

reibs852a5f20a72b
diff --git a/agentops/langchain_callback_handler.py b/agentops/langchain_callback_handler.py
index 806fc43b..e599856c 100644
--- a/agentops/langchain_callback_handler.py
+++ b/agentops/langchain_callback_handler.py
@@ -38,10 +38,11 @@ class LangchainCallbackHandler(BaseCallbackHandler):
) -> Any:
self.events[run_id] = Event(
event_type="llm",
+ action_type='llm',
tags=tags,
model=kwargs['invocation_params']['model'],
params={**kwargs, **metadata},
- prompt="\n--\n".join(prompts),
+ prompt=prompts[0],
init_timestamp=get_ISO_time()
)