langtrace-python-sdk 2.1.26__tar.gz → 2.1.27__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/PKG-INFO +1 -1
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/openai/patch.py +11 -5
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/utils/llm.py +12 -0
- langtrace_python_sdk-2.1.27/src/langtrace_python_sdk/version.py +1 -0
- langtrace_python_sdk-2.1.26/src/langtrace_python_sdk/version.py +0 -1
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/.gitignore +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/LICENSE +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/README.md +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/pyproject.toml +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/anthropic_example/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/anthropic_example/completion.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/chroma_example/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/chroma_example/basic.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/cohere_example/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/cohere_example/chat.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/cohere_example/chat_stream.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/cohere_example/embed.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/cohere_example/rerank.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/cohere_example/tools.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/crewai_example/basic.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/dspy_example/math_problems_cot.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/dspy_example/program_of_thought_basic.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/dspy_example/quiz_gen.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/dspy_example/react.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/fastapi_example/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/fastapi_example/basic_route.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/hiveagent_example/basic.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/inspect_ai_example/basic_eval.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/langchain_example/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/langchain_example/basic.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/langchain_example/groq_example.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/langchain_example/langgraph_example.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/langchain_example/tool.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/llamaindex_example/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/llamaindex_example/agent.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/llamaindex_example/basic.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/llamaindex_example/data/abramov.txt +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/ollama_example/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/ollama_example/basic.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/openai_example/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/openai_example/async_tool_calling_nonstreaming.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/openai_example/async_tool_calling_streaming.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/openai_example/chat_completion.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/openai_example/embeddings_create.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/openai_example/function_calling.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/openai_example/images_edit.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/openai_example/images_generate.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/openai_example/resources/lounge_flamingo.png +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/openai_example/resources/mask.png +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/openai_example/tool_calling.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/openai_example/tool_calling_nonstreaming.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/openai_example/tool_calling_streaming.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/perplexity_example/basic.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/pinecone_example/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/pinecone_example/basic.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/qdrant_example/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/qdrant_example/basic.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/weaviate_example/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/weaviate_example/query_text.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/constants/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/constants/exporter/langtrace_exporter.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/constants/instrumentation/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/constants/instrumentation/anthropic.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/constants/instrumentation/chroma.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/constants/instrumentation/cohere.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/constants/instrumentation/common.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/constants/instrumentation/groq.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/constants/instrumentation/ollama.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/constants/instrumentation/openai.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/constants/instrumentation/pinecone.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/constants/instrumentation/qdrant.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/constants/instrumentation/weaviate.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/extensions/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/extensions/langtrace_exporter.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/extensions/langtrace_filesystem.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/anthropic/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/anthropic/instrumentation.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/anthropic/patch.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/chroma/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/chroma/instrumentation.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/chroma/patch.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/cohere/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/cohere/instrumentation.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/cohere/patch.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/crewai/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/crewai/instrumentation.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/crewai/patch.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/dspy/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/dspy/instrumentation.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/dspy/patch.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/groq/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/groq/instrumentation.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/groq/patch.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/langchain/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/langchain/instrumentation.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/langchain/patch.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/langchain_community/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/langchain_community/instrumentation.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/langchain_community/patch.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/langchain_core/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/langchain_core/instrumentation.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/langchain_core/patch.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/langgraph/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/langgraph/instrumentation.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/langgraph/patch.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/llamaindex/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/llamaindex/instrumentation.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/llamaindex/patch.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/ollama/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/ollama/instrumentation.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/ollama/patch.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/openai/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/openai/instrumentation.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/pinecone/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/pinecone/instrumentation.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/pinecone/patch.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/qdrant/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/qdrant/instrumentation.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/qdrant/patch.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/weaviate/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/weaviate/instrumentation.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/instrumentation/weaviate/patch.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/langtrace.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/types/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/utils/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/utils/langtrace_sampler.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/utils/misc.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/utils/prompt_registry.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/utils/sdk_version_checker.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/utils/silently_fail.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/utils/types.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/utils/with_root_span.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/run_example.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/__init__.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/anthropic/cassettes/test_anthropic.yaml +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/anthropic/cassettes/test_anthropic_streaming.yaml +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/anthropic/cassettes/test_async_anthropic_streaming.yaml +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/anthropic/conftest.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/anthropic/test_anthropic.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/chroma/conftest.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/chroma/test_chroma.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/cohere/cassettes/test_cohere_chat.yaml +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/cohere/cassettes/test_cohere_chat_streaming.yaml +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/cohere/cassettes/test_cohere_embed.yaml +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/cohere/cassettes/test_cohere_rerank.yaml +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/cohere/conftest.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/cohere/test_cohere_chat.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/cohere/test_cohere_embed.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/cohere/test_cohere_rerank.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/conftest.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/langchain/cassettes/test_langchain.yaml +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/langchain/conftest.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/langchain/test_langchain.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/openai/cassettes/test_async_chat_completion_streaming.yaml +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/openai/cassettes/test_async_image_generation.yaml +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/openai/cassettes/test_chat_completion.yaml +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/openai/cassettes/test_chat_completion_streaming.yaml +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/openai/cassettes/test_image_generation.yaml +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/openai/conftest.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/openai/test_chat_completion.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/openai/test_embeddings.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/openai/test_image_generation.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/pinecone/cassettes/test_query.yaml +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/pinecone/cassettes/test_upsert.yaml +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/pinecone/conftest.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/pinecone/test_pinecone.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/qdrant/conftest.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/qdrant/test_qdrant.py +0 -0
- {langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/utils.py +0 -0
|
@@ -28,7 +28,11 @@ from langtrace_python_sdk.constants.instrumentation.common import (
|
|
|
28
28
|
SERVICE_PROVIDERS,
|
|
29
29
|
)
|
|
30
30
|
from langtrace_python_sdk.constants.instrumentation.openai import APIS
|
|
31
|
-
from langtrace_python_sdk.utils.llm import
|
|
31
|
+
from langtrace_python_sdk.utils.llm import (
|
|
32
|
+
calculate_prompt_tokens,
|
|
33
|
+
estimate_tokens,
|
|
34
|
+
get_tool_calls,
|
|
35
|
+
)
|
|
32
36
|
from openai._types import NOT_GIVEN
|
|
33
37
|
|
|
34
38
|
|
|
@@ -430,9 +434,10 @@ def chat_completions_create(original_method, version, tracer):
|
|
|
430
434
|
# handle tool calls in the kwargs
|
|
431
435
|
llm_prompts = []
|
|
432
436
|
for item in kwargs.get("messages", []):
|
|
433
|
-
|
|
437
|
+
tools = get_tool_calls(item)
|
|
438
|
+
if tools is not None:
|
|
434
439
|
tool_calls = []
|
|
435
|
-
for tool_call in
|
|
440
|
+
for tool_call in tools:
|
|
436
441
|
tool_call_dict = {
|
|
437
442
|
"id": tool_call.id if hasattr(tool_call, "id") else "",
|
|
438
443
|
"type": tool_call.type if hasattr(tool_call, "type") else "",
|
|
@@ -611,9 +616,10 @@ def async_chat_completions_create(original_method, version, tracer):
|
|
|
611
616
|
# handle tool calls in the kwargs
|
|
612
617
|
llm_prompts = []
|
|
613
618
|
for item in kwargs.get("messages", []):
|
|
614
|
-
|
|
619
|
+
tools = get_tool_calls(item)
|
|
620
|
+
if tools is not None:
|
|
615
621
|
tool_calls = []
|
|
616
|
-
for tool_call in
|
|
622
|
+
for tool_call in tools:
|
|
617
623
|
tool_call_dict = {
|
|
618
624
|
"id": tool_call.id if hasattr(tool_call, "id") else "",
|
|
619
625
|
"type": tool_call.type if hasattr(tool_call, "type") else "",
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/utils/llm.py
RENAMED
|
@@ -65,3 +65,15 @@ def set_span_attributes(span, name, value):
|
|
|
65
65
|
if value != "":
|
|
66
66
|
span.set_attribute(name, value)
|
|
67
67
|
return
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def get_tool_calls(item):
|
|
71
|
+
if isinstance(item, dict):
|
|
72
|
+
if "tool_calls" in item and item["tool_calls"] is not None:
|
|
73
|
+
return item["tool_calls"]
|
|
74
|
+
return None
|
|
75
|
+
|
|
76
|
+
else:
|
|
77
|
+
if hasattr(item, "tool_calls") and item.tool_calls is not None:
|
|
78
|
+
return item.tool_calls
|
|
79
|
+
return None
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.1.27"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.1.26"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/chroma_example/__init__.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/chroma_example/basic.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/cohere_example/__init__.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/cohere_example/chat.py
RENAMED
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/cohere_example/embed.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/cohere_example/rerank.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/cohere_example/tools.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/crewai_example/basic.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/dspy_example/quiz_gen.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/dspy_example/react.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/fastapi_example/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/hiveagent_example/basic.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/langchain_example/basic.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/langchain_example/tool.py
RENAMED
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/llamaindex_example/agent.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/llamaindex_example/basic.py
RENAMED
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/ollama_example/__init__.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/ollama_example/basic.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/openai_example/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/perplexity_example/basic.py
RENAMED
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/pinecone_example/basic.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/qdrant_example/__init__.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/examples/qdrant_example/basic.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/langtrace.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/utils/misc.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/langtrace_python_sdk/utils/types.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/anthropic/test_anthropic.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/cohere/test_cohere_chat.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/cohere/test_cohere_embed.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/cohere/test_cohere_rerank.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/langchain/test_langchain.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/openai/test_chat_completion.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/openai/test_embeddings.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.1.26 → langtrace_python_sdk-2.1.27}/src/tests/pinecone/test_pinecone.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|