langtrace-python-sdk 3.4.0__tar.gz → 3.5.1__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-3.4.0 → langtrace_python_sdk-3.5.1}/PKG-INFO +2 -2
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/pyproject.toml +1 -1
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/constants/instrumentation/common.py +1 -1
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/constants/instrumentation/vertexai.py +20 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/vertexai/patch.py +36 -6
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/utils/llm.py +30 -13
- langtrace_python_sdk-3.5.1/src/langtrace_python_sdk/version.py +1 -0
- langtrace_python_sdk-3.4.0/src/langtrace_python_sdk/version.py +0 -1
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/.gitignore +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/LICENSE +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/README.md +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/anthropic_example/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/anthropic_example/completion.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/autogen_example/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/autogen_example/main.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/awsbedrock_examples/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/awsbedrock_examples/converse.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/azureopenai_example/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/azureopenai_example/completion.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/cerebras_example/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/cerebras_example/main.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/chroma_example/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/chroma_example/basic.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/cohere_example/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/cohere_example/chat.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/cohere_example/chat_stream.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/cohere_example/chat_streamv2.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/cohere_example/chatv2.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/cohere_example/embed.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/cohere_example/rerank.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/cohere_example/rerankv2.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/cohere_example/tools.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/crewai_example/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/crewai_example/basic.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/crewai_example/instagram_post/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/crewai_example/instagram_post/agents.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/crewai_example/instagram_post/main.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/crewai_example/instagram_post/tasks.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/crewai_example/instagram_post/tools/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/crewai_example/instagram_post/tools/browser_tools.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/crewai_example/simple_agent/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/crewai_example/simple_agent/agents.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/crewai_example/simple_agent/main.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/crewai_example/simple_agent/tasks.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/crewai_example/trip_planner/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/crewai_example/trip_planner/agents.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/crewai_example/trip_planner/main.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/crewai_example/trip_planner/tasks.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/crewai_example/trip_planner/tools/calculator.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/crewai_example/trip_planner/tools/search_tools.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/dspy_example/QA_basic.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/dspy_example/QA_basic_with_chain_of_thought.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/dspy_example/QA_basic_with_signature.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/dspy_example/QA_multi_step_with_chain_of_thought.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/dspy_example/math_problems_cot.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/dspy_example/math_problems_cot_parallel.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/dspy_example/optimizers/bootstrap_fewshot.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/dspy_example/program_of_thought_basic.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/dspy_example/quiz_gen.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/dspy_example/react.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/embedchain_example/simple.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/fastapi_example/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/fastapi_example/basic_route.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/gemini_example/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/gemini_example/function_tools.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/gemini_example/main.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/google_genai_example/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/google_genai_example/main.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/hiveagent_example/basic.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/inspect_ai_example/basic_eval.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/langchain_example/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/langchain_example/basic.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/langchain_example/groq_example.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/langchain_example/langchain_google_example.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/langchain_example/langgraph_example.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/langchain_example/langgraph_example_tools.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/langchain_example/sagemaker.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/langchain_example/tool.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/langgraph_example/main.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/litellm_example/basic.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/litellm_example/config.yaml +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/litellm_example/proxy_basic.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/llamaindex_example/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/llamaindex_example/agent.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/llamaindex_example/basic.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/llamaindex_example/data/abramov.txt +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/milvus_example/main.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/mistral_example/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/mistral_example/complete.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/mistral_example/complete_async.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/mistral_example/embeddings.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/mongo_vector_search_example/main.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/ollama_example/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/ollama_example/basic.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/openai_example/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/openai_example/async_tool_calling_nonstreaming.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/openai_example/async_tool_calling_streaming.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/openai_example/chat_completion.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/openai_example/chat_completion_tool_choice.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/openai_example/embeddings_create.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/openai_example/function_calling.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/openai_example/images_edit.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/openai_example/images_generate.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/openai_example/resources/lounge_flamingo.png +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/openai_example/resources/mask.png +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/openai_example/send_user_feedback.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/openai_example/tool_calling.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/openai_example/tool_calling_nonstreaming.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/openai_example/tool_calling_streaming.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/otlp_example/otlp_basic.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/otlp_example/otlp_with_langtrace.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/perplexity_example/basic.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/pinecone_example/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/pinecone_example/basic.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/qdrant_example/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/qdrant_example/basic.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/routellm_example/basic.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/vertexai_example/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/vertexai_example/main.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/weaviate_example/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/weaviate_example/query_text.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/constants/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/constants/exporter/langtrace_exporter.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/constants/instrumentation/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/constants/instrumentation/anthropic.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/constants/instrumentation/aws_bedrock.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/constants/instrumentation/chroma.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/constants/instrumentation/cohere.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/constants/instrumentation/embedchain.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/constants/instrumentation/gemini.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/constants/instrumentation/groq.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/constants/instrumentation/litellm.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/constants/instrumentation/milvus.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/constants/instrumentation/mistral.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/constants/instrumentation/ollama.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/constants/instrumentation/openai.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/constants/instrumentation/pinecone.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/constants/instrumentation/pymongo.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/constants/instrumentation/qdrant.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/constants/instrumentation/weaviate.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/extensions/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/extensions/langtrace_exporter.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/extensions/langtrace_filesystem.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/anthropic/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/anthropic/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/anthropic/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/anthropic/types.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/autogen/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/autogen/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/autogen/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/aws_bedrock/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/aws_bedrock/bedrock_streaming_wrapper.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/aws_bedrock/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/aws_bedrock/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/aws_bedrock/stream_body_wrapper.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/cerebras/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/cerebras/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/cerebras/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/chroma/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/chroma/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/chroma/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/cohere/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/cohere/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/cohere/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/crewai/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/crewai/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/crewai/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/crewai_tools/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/crewai_tools/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/crewai_tools/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/dspy/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/dspy/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/dspy/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/embedchain/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/embedchain/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/embedchain/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/gemini/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/gemini/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/gemini/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/google_genai/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/google_genai/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/google_genai/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/groq/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/groq/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/groq/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/langchain/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/langchain/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/langchain/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/langchain_community/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/langchain_community/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/langchain_community/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/langchain_core/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/langchain_core/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/langchain_core/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/langgraph/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/langgraph/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/langgraph/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/litellm/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/litellm/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/litellm/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/litellm/types.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/llamaindex/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/llamaindex/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/llamaindex/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/milvus/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/milvus/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/milvus/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/mistral/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/mistral/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/mistral/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/ollama/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/ollama/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/ollama/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/openai/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/openai/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/openai/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/openai/types.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/pinecone/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/pinecone/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/pinecone/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/pymongo/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/pymongo/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/pymongo/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/qdrant/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/qdrant/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/qdrant/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/vertexai/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/vertexai/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/weaviate/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/weaviate/instrumentation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/instrumentation/weaviate/patch.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/langtrace.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/types/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/utils/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/utils/langtrace_sampler.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/utils/misc.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/utils/prompt_registry.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/utils/sdk_version_checker.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/utils/silently_fail.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/utils/types.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/utils/with_root_span.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/run_example.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/__init__.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/anthropic/cassettes/test_anthropic.yaml +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/anthropic/cassettes/test_anthropic_streaming.yaml +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/anthropic/cassettes/test_async_anthropic_streaming.yaml +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/anthropic/conftest.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/anthropic/test_anthropic.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/chroma/conftest.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/chroma/test_chroma.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/cohere/cassettes/test_cohere_chat.yaml +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/cohere/cassettes/test_cohere_chat_streaming.yaml +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/cohere/cassettes/test_cohere_embed.yaml +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/cohere/cassettes/test_cohere_rerank.yaml +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/cohere/conftest.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/cohere/test_cohere_chat.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/cohere/test_cohere_embed.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/cohere/test_cohere_rerank.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/conftest.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/groq/cassettes/test_async_chat_completion.yaml +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/groq/cassettes/test_async_chat_completion_streaming.yaml +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/groq/cassettes/test_chat_completion.yaml +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/groq/cassettes/test_chat_completion_streaming.yaml +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/groq/conftest.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/groq/test_groq.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/langchain/cassettes/test_langchain.yaml +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/langchain/conftest.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/langchain/test_langchain.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/openai/cassettes/test_async_chat_completion_streaming.yaml +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/openai/cassettes/test_async_image_generation.yaml +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/openai/cassettes/test_chat_completion.yaml +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/openai/cassettes/test_chat_completion_streaming.yaml +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/openai/cassettes/test_embeddings_base_url.yaml +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/openai/cassettes/test_image_generation.yaml +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/openai/conftest.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/openai/test_chat_completion.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/openai/test_embeddings.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/openai/test_image_generation.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/pinecone/cassettes/test_query.yaml +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/pinecone/cassettes/test_upsert.yaml +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/pinecone/conftest.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/pinecone/test_pinecone.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/qdrant/conftest.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/qdrant/test_qdrant.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/test_session_id.py +0 -0
- {langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/tests/utils.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: langtrace-python-sdk
|
3
|
-
Version: 3.
|
3
|
+
Version: 3.5.1
|
4
4
|
Summary: Python SDK for LangTrace
|
5
5
|
Project-URL: Homepage, https://github.com/Scale3-Labs/langtrace-python-sdk
|
6
6
|
Author-email: Scale3 Labs <engineering@scale3labs.com>
|
@@ -23,7 +23,7 @@ Requires-Dist: sentry-sdk>=2.14.0
|
|
23
23
|
Requires-Dist: setuptools
|
24
24
|
Requires-Dist: sqlalchemy
|
25
25
|
Requires-Dist: tiktoken>=0.1.1
|
26
|
-
Requires-Dist: trace-attributes==7.1.
|
26
|
+
Requires-Dist: trace-attributes==7.1.2
|
27
27
|
Requires-Dist: transformers>=4.11.3
|
28
28
|
Requires-Dist: ujson>=5.10.0
|
29
29
|
Provides-Extra: dev
|
@@ -39,4 +39,24 @@ APIS = {
|
|
39
39
|
"method": "ChatSession",
|
40
40
|
"operation": "send_message_streaming",
|
41
41
|
},
|
42
|
+
"PREDICTION_SERVICE_BETA_GENERATE_CONTENT": {
|
43
|
+
"module": "google.cloud.aiplatform_v1beta1.services.prediction_service.client",
|
44
|
+
"method": "PredictionServiceClient",
|
45
|
+
"operation": "generate_content",
|
46
|
+
},
|
47
|
+
"PREDICTION_SERVICE_GENERATE_CONTENT": {
|
48
|
+
"module": "google.cloud.aiplatform_v1.services.prediction_service.client",
|
49
|
+
"method": "PredictionServiceClient",
|
50
|
+
"operation": "generate_content",
|
51
|
+
},
|
52
|
+
"PREDICTION_SERVICE_BETA_STREAM_GENERATE_CONTENT": {
|
53
|
+
"module": "google.cloud.aiplatform_v1beta1.services.prediction_service.client",
|
54
|
+
"method": "PredictionServiceClient",
|
55
|
+
"operation": "stream_generate_content",
|
56
|
+
},
|
57
|
+
"PREDICTION_SERVICE_STREAM_GENERATE_CONTENT": {
|
58
|
+
"module": "google.cloud.aiplatform_v1.services.prediction_service.client",
|
59
|
+
"method": "PredictionServiceClient",
|
60
|
+
"operation": "stream_generate_content",
|
61
|
+
},
|
42
62
|
}
|
@@ -27,12 +27,13 @@ def patch_vertexai(name, version, tracer: Tracer):
|
|
27
27
|
def traced_method(wrapped, instance, args, kwargs):
|
28
28
|
service_provider = SERVICE_PROVIDERS["VERTEXAI"]
|
29
29
|
prompts = serialize_prompts(args, kwargs)
|
30
|
+
|
30
31
|
span_attributes = {
|
31
32
|
**get_langtrace_attributes(version, service_provider),
|
32
33
|
**get_llm_request_attributes(
|
33
34
|
kwargs,
|
34
35
|
prompts=prompts,
|
35
|
-
model=get_llm_model(instance),
|
36
|
+
model=get_llm_model(instance, kwargs),
|
36
37
|
),
|
37
38
|
**get_llm_url(instance),
|
38
39
|
SpanAttributes.LLM_PATH: "",
|
@@ -77,6 +78,10 @@ def set_response_attributes(span: Span, result):
|
|
77
78
|
if hasattr(result, "text"):
|
78
79
|
set_event_completion(span, [{"role": "assistant", "content": result.text}])
|
79
80
|
|
81
|
+
if hasattr(result, "candidates"):
|
82
|
+
parts = result.candidates[0].content.parts
|
83
|
+
set_event_completion(span, [{"role": "assistant", "content": parts[0].text}])
|
84
|
+
|
80
85
|
if hasattr(result, "usage_metadata") and result.usage_metadata is not None:
|
81
86
|
usage = result.usage_metadata
|
82
87
|
input_tokens = usage.prompt_token_count
|
@@ -96,17 +101,23 @@ def set_response_attributes(span: Span, result):
|
|
96
101
|
|
97
102
|
|
98
103
|
def is_streaming_response(response):
|
99
|
-
return
|
100
|
-
response, types.
|
104
|
+
return (
|
105
|
+
isinstance(response, types.GeneratorType)
|
106
|
+
or isinstance(response, types.AsyncGeneratorType)
|
107
|
+
or str(type(response).__name__) == "_StreamingResponseIterator"
|
101
108
|
)
|
102
109
|
|
103
110
|
|
104
|
-
def get_llm_model(instance):
|
111
|
+
def get_llm_model(instance, kwargs):
|
112
|
+
if "request" in kwargs:
|
113
|
+
return kwargs.get("request").model.split("/")[-1]
|
114
|
+
|
105
115
|
if hasattr(instance, "_model_name"):
|
106
116
|
return instance._model_name.replace("publishers/google/models/", "")
|
107
117
|
return getattr(instance, "_model_id", "unknown")
|
108
118
|
|
109
119
|
|
120
|
+
@silently_fail
|
110
121
|
def serialize_prompts(args, kwargs):
|
111
122
|
if args and len(args) > 0:
|
112
123
|
prompt_parts = []
|
@@ -122,5 +133,24 @@ def serialize_prompts(args, kwargs):
|
|
122
133
|
|
123
134
|
return [{"role": "user", "content": "\n".join(prompt_parts)}]
|
124
135
|
else:
|
125
|
-
|
126
|
-
|
136
|
+
# Handle PredictionServiceClient for google-cloud-aiplatform.
|
137
|
+
if "request" in kwargs:
|
138
|
+
prompt = []
|
139
|
+
prompt_body = kwargs.get("request")
|
140
|
+
if prompt_body.system_instruction:
|
141
|
+
for part in prompt_body.system_instruction.parts:
|
142
|
+
prompt.append({"role": "system", "content": part.text})
|
143
|
+
|
144
|
+
contents = prompt_body.contents
|
145
|
+
|
146
|
+
if not contents:
|
147
|
+
return []
|
148
|
+
|
149
|
+
for c in contents:
|
150
|
+
role = c.role if c.role else "user"
|
151
|
+
content = c.parts[0].text if c.parts else ""
|
152
|
+
prompt.append({"role": role, "content": content})
|
153
|
+
return prompt
|
154
|
+
else:
|
155
|
+
content = kwargs.get("prompt") or kwargs.get("message")
|
156
|
+
return [{"role": "user", "content": content}] if content else []
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/langtrace_python_sdk/utils/llm.py
RENAMED
@@ -395,18 +395,30 @@ class StreamWrapper:
|
|
395
395
|
content = [chunk.text]
|
396
396
|
|
397
397
|
# CohereV2
|
398
|
-
if (
|
399
|
-
chunk
|
400
|
-
|
401
|
-
chunk.delta
|
402
|
-
|
403
|
-
chunk.delta.message
|
404
|
-
|
405
|
-
chunk.delta.message.content
|
398
|
+
if (
|
399
|
+
hasattr(chunk, "delta")
|
400
|
+
and chunk.delta is not None
|
401
|
+
and hasattr(chunk.delta, "message")
|
402
|
+
and chunk.delta.message is not None
|
403
|
+
and hasattr(chunk.delta.message, "content")
|
404
|
+
and chunk.delta.message.content is not None
|
405
|
+
and hasattr(chunk.delta.message.content, "text")
|
406
|
+
and chunk.delta.message.content.text is not None
|
407
|
+
):
|
406
408
|
content = [chunk.delta.message.content.text]
|
407
|
-
|
409
|
+
# google-cloud-aiplatform
|
410
|
+
if hasattr(chunk, "candidates") and chunk.candidates is not None:
|
411
|
+
for candidate in chunk.candidates:
|
412
|
+
if hasattr(candidate, "content") and candidate.content is not None:
|
413
|
+
for part in candidate.content.parts:
|
414
|
+
if hasattr(part, "text") and part.text is not None:
|
415
|
+
content.append(part.text)
|
408
416
|
# Anthropic
|
409
|
-
if
|
417
|
+
if (
|
418
|
+
hasattr(chunk, "delta")
|
419
|
+
and chunk.delta is not None
|
420
|
+
and not hasattr(chunk.delta, "message")
|
421
|
+
):
|
410
422
|
content = [chunk.delta.text] if hasattr(chunk.delta, "text") else []
|
411
423
|
|
412
424
|
if isinstance(chunk, dict):
|
@@ -425,9 +437,14 @@ class StreamWrapper:
|
|
425
437
|
|
426
438
|
# CohereV2
|
427
439
|
if hasattr(chunk, "type") and chunk.type == "message-end":
|
428
|
-
if (
|
429
|
-
hasattr(chunk
|
430
|
-
|
440
|
+
if (
|
441
|
+
hasattr(chunk, "delta")
|
442
|
+
and chunk.delta is not None
|
443
|
+
and hasattr(chunk.delta, "usage")
|
444
|
+
and chunk.delta.usage is not None
|
445
|
+
and hasattr(chunk.delta.usage, "billed_units")
|
446
|
+
and chunk.delta.usage.billed_units is not None
|
447
|
+
):
|
431
448
|
usage = chunk.delta.usage.billed_units
|
432
449
|
self.completion_tokens = int(usage.output_tokens)
|
433
450
|
self.prompt_tokens = int(usage.input_tokens)
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "3.5.1"
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "3.4.0"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/anthropic_example/__init__.py
RENAMED
File without changes
|
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/autogen_example/__init__.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/autogen_example/main.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/cerebras_example/__init__.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/cerebras_example/main.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/chroma_example/__init__.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/chroma_example/basic.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/cohere_example/__init__.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/cohere_example/chat.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/cohere_example/chat_stream.py
RENAMED
File without changes
|
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/cohere_example/chatv2.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/cohere_example/embed.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/cohere_example/rerank.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/cohere_example/rerankv2.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/cohere_example/tools.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/crewai_example/__init__.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/crewai_example/basic.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
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/dspy_example/QA_basic.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-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/dspy_example/quiz_gen.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/dspy_example/react.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/embedchain_example/simple.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/fastapi_example/__init__.py
RENAMED
File without changes
|
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/gemini_example/__init__.py
RENAMED
File without changes
|
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/gemini_example/main.py
RENAMED
File without changes
|
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/google_genai_example/main.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/hiveagent_example/basic.py
RENAMED
File without changes
|
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/langchain_example/__init__.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/langchain_example/basic.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/langchain_example/tool.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/langgraph_example/main.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/litellm_example/basic.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/litellm_example/config.yaml
RENAMED
File without changes
|
File without changes
|
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/llamaindex_example/agent.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/llamaindex_example/basic.py
RENAMED
File without changes
|
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/milvus_example/main.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/mistral_example/__init__.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/mistral_example/complete.py
RENAMED
File without changes
|
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/mistral_example/embeddings.py
RENAMED
File without changes
|
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/ollama_example/__init__.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/ollama_example/basic.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/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
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/openai_example/images_edit.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-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/otlp_example/otlp_basic.py
RENAMED
File without changes
|
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/perplexity_example/basic.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/pinecone_example/__init__.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/pinecone_example/basic.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/qdrant_example/__init__.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/qdrant_example/basic.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/routellm_example/basic.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/vertexai_example/__init__.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/vertexai_example/main.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/src/examples/weaviate_example/__init__.py
RENAMED
File without changes
|
File without changes
|
{langtrace_python_sdk-3.4.0 → langtrace_python_sdk-3.5.1}/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
|