Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: Traces not showing for LLM calls when using CrewAI #1350

Open
othmansamih opened this issue Dec 22, 2024 · 0 comments
Open

Issue: Traces not showing for LLM calls when using CrewAI #1350

othmansamih opened this issue Dec 22, 2024 · 0 comments

Comments

@othmansamih
Copy link

Issue you'd like to raise.

Description:

I am working on a project with CrewAI (built on top of LangChain) to implement agents. However, I encounter an issue where the traces of LLM calls are not displayed in LangSmith.

When I test a simple script using ChatOpenAI directly, as per LangSmith's documentation example, it works fine. For instance:

from langchain_openai import ChatOpenAI

llm = ChatOpenAI()
llm.invoke("Hello, world!")

However, when using CrewAI built-on top of Langchain Framework, no traces appear in LangSmith.

Here are the configurations in my .env file:

LANGCHAIN_TRACING_V2=true
LANGCHAIN_ENDPOINT="https://api.smith.langchain.com"
LANGCHAIN_API_KEY=<my-api-key>
LANGCHAIN_PROJECT="crewai-project"

Environment Details:

  • python: 3.10.0
  • crewAI: 0.86.0
  • langChain: 0.3.13
  • langChain-openai 0.2.14

Suggestion:

No response

@othmansamih othmansamih changed the title Issue: Traces Not Showing for LLM Calls When Using CrewAI Agents Issue: Traces not showing for LLM calls when using CrewAI Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant