futureagi 0.5.2__tar.gz → 0.5.4__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.
Files changed (483) hide show
  1. {futureagi-0.5.2 → futureagi-0.5.4}/PKG-INFO +1 -1
  2. {futureagi-0.5.2 → futureagi-0.5.4}/fi/evals/protect.py +10 -9
  3. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/anthropic/__init__.py +0 -15
  4. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/anthropic/_stream.py +0 -23
  5. {futureagi-0.5.2/fi/integrations/otel/frameworks/mistralai → futureagi-0.5.4/fi/integrations/otel/frameworks/anthropic}/_utils.py +17 -8
  6. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/anthropic/_with_span.py +0 -19
  7. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/anthropic/_wrappers.py +25 -33
  8. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/anthropic/examples/anthropic_examples.py +31 -10
  9. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/anthropic/examples/chat_completions.py +1 -0
  10. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/anthropic/examples/end_to_end_tool_use.py +1 -0
  11. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/anthropic/examples/multiple_tool_calling.py +1 -0
  12. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/anthropic/examples/sync_completions.py +1 -0
  13. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/anthropic/examples/sync_messages.py +1 -0
  14. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/bedrock/_wrappers.py +0 -1
  15. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/bedrock/examples/bedrock_1.py +12 -10
  16. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/bedrock/examples/bedrock_2.py +14 -6
  17. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/bedrock/examples/bedrock_converse.py +1 -0
  18. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/bedrock/examples/bedrock_multimodal.py +1 -0
  19. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/crewai/_wrappers.py +47 -2
  20. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/crewai/examples/crew_ai.py +18 -1
  21. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/dspy/__init__.py +158 -1
  22. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/dspy/examples/dspy_basic_qa.py +1 -0
  23. futureagi-0.5.4/fi/integrations/otel/frameworks/dspy/examples/embedding.py +28 -0
  24. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/dspy/examples/lm.py +1 -0
  25. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/dspy/examples/rag_module.py +1 -0
  26. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/groq/_request_attributes_extractor.py +38 -9
  27. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/groq/_response_attributes_extractor.py +14 -4
  28. futureagi-0.5.4/fi/integrations/otel/frameworks/groq/_utils.py +216 -0
  29. futureagi-0.5.4/fi/integrations/otel/frameworks/groq/_wrappers.py +407 -0
  30. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/groq/examples/async_chat_completions.py +1 -0
  31. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/groq/examples/chat_completions.py +1 -0
  32. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/groq/examples/chat_completions_with_tool.py +1 -0
  33. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/haystack/examples/building_fallbacks_with_conditional_routing.py +1 -0
  34. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/haystack/examples/cohere_reranker.py +1 -0
  35. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/haystack/examples/filtering_documents_with_metadata.py +1 -0
  36. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/haystack/examples/haystack_rag_pipeline.py +2 -1
  37. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/haystack/examples/qa_rag_pipeline.py +2 -1
  38. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/haystack/examples/tool_calling.py +1 -0
  39. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/haystack/examples/web_questions.py +1 -0
  40. futureagi-0.5.4/fi/integrations/otel/frameworks/instructor/_wrappers.py +281 -0
  41. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/instructor/examples/test_instructor.py +30 -15
  42. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/langchain/_tracer.py +0 -1
  43. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/langchain/examples/chain_metadata.py +1 -0
  44. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/langchain/examples/chat_prompt_template.py +1 -0
  45. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/langchain/examples/custom_retriever.py +1 -0
  46. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/langchain/examples/exchange_rate_tool.py +1 -0
  47. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/langchain/examples/langgraph_agent_supervisor.py +1 -0
  48. futureagi-0.5.4/fi/integrations/otel/frameworks/langchain/examples/language_agent_tree_search.py +341 -0
  49. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/langchain/examples/multimodal.py +1 -0
  50. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/langchain/examples/openai_chat_stream.py +1 -0
  51. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/langchain/examples/pathway_retriever.py +1 -0
  52. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/langchain/examples/rag.py +45 -16
  53. futureagi-0.5.4/fi/integrations/otel/frameworks/langchain/examples/rerank.py +102 -0
  54. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/langchain/examples/sqlagent.py +3 -0
  55. futureagi-0.5.4/fi/integrations/otel/frameworks/langchain/examples/tool_calling_agent.py +300 -0
  56. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/litellm/__init__.py +255 -23
  57. futureagi-0.5.4/fi/integrations/otel/frameworks/litellm/examples/litellm_test.py +163 -0
  58. futureagi-0.5.4/fi/integrations/otel/frameworks/litellm/examples/rerank.py +36 -0
  59. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/llama_index/_handler.py +117 -15
  60. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/llama_index/examples/agent_calculator_tools.py +1 -0
  61. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/llama_index/examples/chat_engine_stream.py +3 -5
  62. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/llama_index/examples/chroma_query_engine.py +1 -1
  63. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/llama_index/examples/ingestion_pipeline.py +1 -0
  64. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/llama_index/examples/multimodal_stream_chat.py +1 -0
  65. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/llama_index/examples/openai_stream_chat.py +1 -0
  66. futureagi-0.5.4/fi/integrations/otel/frameworks/llama_index/examples/rerank.py +76 -0
  67. futureagi-0.5.4/fi/integrations/otel/frameworks/llama_index/examples/retriever.py +64 -0
  68. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/llama_index/examples/text_to_sql.py +1 -0
  69. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/llama_index/examples/workflow.py +1 -0
  70. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/mistralai/_chat_wrapper.py +35 -22
  71. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/mistralai/_request_attributes_extractor.py +23 -6
  72. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/mistralai/_response_accumulator.py +24 -17
  73. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/mistralai/_stream.py +39 -33
  74. futureagi-0.5.4/fi/integrations/otel/frameworks/mistralai/_utils.py +173 -0
  75. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/mistralai/examples/agent_completions.py +2 -1
  76. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/mistralai/examples/chat_completions.py +1 -0
  77. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/mistralai/examples/chat_completions_async.py +1 -0
  78. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/mistralai/examples/chat_completions_async_streaming.py +1 -0
  79. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/mistralai/examples/chat_completions_streaming.py +1 -0
  80. futureagi-0.5.4/fi/integrations/otel/frameworks/mistralai/examples/new-1.py +107 -0
  81. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/openai/_request.py +48 -75
  82. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/openai/_response_accumulator.py +39 -17
  83. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/openai/_span_io_handler.py +18 -6
  84. futureagi-0.5.4/fi/integrations/otel/frameworks/openai/_stream.py +180 -0
  85. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/openai/_utils.py +19 -0
  86. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/openai/examples/chat_completions.py +1 -0
  87. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/openai/examples/chat_completions_async_stream.py +1 -0
  88. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/openai/examples/chat_completions_async_stream_with_raw_response.py +1 -0
  89. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/openai/examples/chat_completions_multimodal.py +1 -0
  90. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/openai/examples/chat_completions_stream.py +2 -2
  91. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/openai/examples/chat_completions_stream_with_raw_response.py +1 -0
  92. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/openai/examples/chat_completions_with_function_calling.py +1 -0
  93. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/openai/examples/chat_completions_with_raw_response.py +1 -0
  94. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/openai/examples/chat_completions_with_streaming_response.py +1 -0
  95. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/openai/examples/embeddings.py +1 -0
  96. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/openai/examples/openai_tool.py +1 -0
  97. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/vertexai/_wrapper.py +22 -2
  98. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/vertexai/examples/audio_transcription.py +4 -1
  99. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/vertexai/examples/audio_understanding.py +4 -1
  100. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/vertexai/examples/basic_generation.py +4 -1
  101. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/vertexai/examples/chat.py +4 -1
  102. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/vertexai/examples/document_understanding.py +4 -1
  103. futureagi-0.5.4/fi/integrations/otel/frameworks/vertexai/examples/embedding.py +47 -0
  104. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/vertexai/examples/function_calling.py +4 -1
  105. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/vertexai/examples/image_from_cloud_storage.py +4 -1
  106. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/vertexai/examples/system_instructions.py +4 -1
  107. futureagi-0.5.4/fi/integrations/otel/frameworks/vertexai/examples/tool_calling.py +106 -0
  108. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/vertexai/examples/vertexai.model.count_tokens.py +1 -0
  109. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/vertexai/examples/vertexai.model.generate_content.py +6 -1
  110. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/vertexai/examples/video_and_audio_understanding.py +4 -1
  111. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/otel.py +77 -11
  112. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/settings.py +19 -0
  113. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/types.py +4 -6
  114. {futureagi-0.5.2 → futureagi-0.5.4}/fi/prompt/client.py +47 -11
  115. {futureagi-0.5.2 → futureagi-0.5.4}/fi/test/eval_tags.py +0 -5
  116. {futureagi-0.5.2 → futureagi-0.5.4}/pyproject.toml +1 -1
  117. futureagi-0.5.2/fi/api/__pycache__/__init__.cpython-310.pyc +0 -0
  118. futureagi-0.5.2/fi/api/__pycache__/__init__.cpython-312.pyc +0 -0
  119. futureagi-0.5.2/fi/api/__pycache__/__init__.cpython-313.pyc +0 -0
  120. futureagi-0.5.2/fi/api/__pycache__/auth.cpython-310.pyc +0 -0
  121. futureagi-0.5.2/fi/api/__pycache__/auth.cpython-312.pyc +0 -0
  122. futureagi-0.5.2/fi/api/__pycache__/auth.cpython-313.pyc +0 -0
  123. futureagi-0.5.2/fi/api/__pycache__/types.cpython-310.pyc +0 -0
  124. futureagi-0.5.2/fi/api/__pycache__/types.cpython-312.pyc +0 -0
  125. futureagi-0.5.2/fi/api/__pycache__/types.cpython-313.pyc +0 -0
  126. futureagi-0.5.2/fi/datasets/__pycache__/__init__.cpython-310.pyc +0 -0
  127. futureagi-0.5.2/fi/datasets/__pycache__/__init__.cpython-313.pyc +0 -0
  128. futureagi-0.5.2/fi/datasets/__pycache__/client.cpython-310.pyc +0 -0
  129. futureagi-0.5.2/fi/datasets/__pycache__/client.cpython-313.pyc +0 -0
  130. futureagi-0.5.2/fi/datasets/__pycache__/types.cpython-310.pyc +0 -0
  131. futureagi-0.5.2/fi/datasets/__pycache__/types.cpython-313.pyc +0 -0
  132. futureagi-0.5.2/fi/evals/__pycache__/__init__.cpython-310.pyc +0 -0
  133. futureagi-0.5.2/fi/evals/__pycache__/__init__.cpython-312.pyc +0 -0
  134. futureagi-0.5.2/fi/evals/__pycache__/__init__.cpython-313.pyc +0 -0
  135. futureagi-0.5.2/fi/evals/__pycache__/evaluator.cpython-310.pyc +0 -0
  136. futureagi-0.5.2/fi/evals/__pycache__/evaluator.cpython-312.pyc +0 -0
  137. futureagi-0.5.2/fi/evals/__pycache__/evaluator.cpython-313.pyc +0 -0
  138. futureagi-0.5.2/fi/evals/__pycache__/protect.cpython-312.pyc +0 -0
  139. futureagi-0.5.2/fi/evals/__pycache__/protect.cpython-313.pyc +0 -0
  140. futureagi-0.5.2/fi/evals/__pycache__/templates.cpython-310.pyc +0 -0
  141. futureagi-0.5.2/fi/evals/__pycache__/templates.cpython-312.pyc +0 -0
  142. futureagi-0.5.2/fi/evals/__pycache__/templates.cpython-313.pyc +0 -0
  143. futureagi-0.5.2/fi/evals/__pycache__/types.cpython-310.pyc +0 -0
  144. futureagi-0.5.2/fi/evals/__pycache__/types.cpython-312.pyc +0 -0
  145. futureagi-0.5.2/fi/evals/__pycache__/types.cpython-313.pyc +0 -0
  146. futureagi-0.5.2/fi/integrations/__pycache__/__init__.cpython-310.pyc +0 -0
  147. futureagi-0.5.2/fi/integrations/__pycache__/__init__.cpython-312.pyc +0 -0
  148. futureagi-0.5.2/fi/integrations/__pycache__/__init__.cpython-313.pyc +0 -0
  149. futureagi-0.5.2/fi/integrations/otel/__pycache__/__init__.cpython-312.pyc +0 -0
  150. futureagi-0.5.2/fi/integrations/otel/__pycache__/__init__.cpython-313.pyc +0 -0
  151. futureagi-0.5.2/fi/integrations/otel/__pycache__/otel.cpython-312.pyc +0 -0
  152. futureagi-0.5.2/fi/integrations/otel/__pycache__/otel.cpython-313.pyc +0 -0
  153. futureagi-0.5.2/fi/integrations/otel/__pycache__/settings.cpython-312.pyc +0 -0
  154. futureagi-0.5.2/fi/integrations/otel/__pycache__/settings.cpython-313.pyc +0 -0
  155. futureagi-0.5.2/fi/integrations/otel/__pycache__/types.cpython-312.pyc +0 -0
  156. futureagi-0.5.2/fi/integrations/otel/__pycache__/types.cpython-313.pyc +0 -0
  157. futureagi-0.5.2/fi/integrations/otel/frameworks/anthropic/__pycache__/__init__.cpython-312.pyc +0 -0
  158. futureagi-0.5.2/fi/integrations/otel/frameworks/anthropic/__pycache__/__init__.cpython-313.pyc +0 -0
  159. futureagi-0.5.2/fi/integrations/otel/frameworks/anthropic/__pycache__/_stream.cpython-312.pyc +0 -0
  160. futureagi-0.5.2/fi/integrations/otel/frameworks/anthropic/__pycache__/_stream.cpython-313.pyc +0 -0
  161. futureagi-0.5.2/fi/integrations/otel/frameworks/anthropic/__pycache__/_utils.cpython-312.pyc +0 -0
  162. futureagi-0.5.2/fi/integrations/otel/frameworks/anthropic/__pycache__/_utils.cpython-313.pyc +0 -0
  163. futureagi-0.5.2/fi/integrations/otel/frameworks/anthropic/__pycache__/_with_span.cpython-312.pyc +0 -0
  164. futureagi-0.5.2/fi/integrations/otel/frameworks/anthropic/__pycache__/_with_span.cpython-313.pyc +0 -0
  165. futureagi-0.5.2/fi/integrations/otel/frameworks/anthropic/__pycache__/_wrappers.cpython-312.pyc +0 -0
  166. futureagi-0.5.2/fi/integrations/otel/frameworks/anthropic/__pycache__/_wrappers.cpython-313.pyc +0 -0
  167. futureagi-0.5.2/fi/integrations/otel/frameworks/anthropic/__pycache__/version.cpython-312.pyc +0 -0
  168. futureagi-0.5.2/fi/integrations/otel/frameworks/anthropic/__pycache__/version.cpython-313.pyc +0 -0
  169. futureagi-0.5.2/fi/integrations/otel/frameworks/anthropic/_utils.py +0 -108
  170. futureagi-0.5.2/fi/integrations/otel/frameworks/bedrock/__generated__/__pycache__/__init__.cpython-312.pyc +0 -0
  171. futureagi-0.5.2/fi/integrations/otel/frameworks/bedrock/__generated__/__pycache__/__init__.cpython-313.pyc +0 -0
  172. futureagi-0.5.2/fi/integrations/otel/frameworks/bedrock/__generated__/anthropic/__pycache__/__init__.cpython-312.pyc +0 -0
  173. futureagi-0.5.2/fi/integrations/otel/frameworks/bedrock/__generated__/anthropic/__pycache__/__init__.cpython-313.pyc +0 -0
  174. futureagi-0.5.2/fi/integrations/otel/frameworks/bedrock/__generated__/anthropic/__pycache__/_types.cpython-312.pyc +0 -0
  175. futureagi-0.5.2/fi/integrations/otel/frameworks/bedrock/__generated__/anthropic/__pycache__/_types.cpython-313.pyc +0 -0
  176. futureagi-0.5.2/fi/integrations/otel/frameworks/bedrock/__pycache__/__init__.cpython-312.pyc +0 -0
  177. futureagi-0.5.2/fi/integrations/otel/frameworks/bedrock/__pycache__/__init__.cpython-313.pyc +0 -0
  178. futureagi-0.5.2/fi/integrations/otel/frameworks/bedrock/__pycache__/_proxy.cpython-312.pyc +0 -0
  179. futureagi-0.5.2/fi/integrations/otel/frameworks/bedrock/__pycache__/_proxy.cpython-313.pyc +0 -0
  180. futureagi-0.5.2/fi/integrations/otel/frameworks/bedrock/__pycache__/_wrappers.cpython-312.pyc +0 -0
  181. futureagi-0.5.2/fi/integrations/otel/frameworks/bedrock/__pycache__/_wrappers.cpython-313.pyc +0 -0
  182. futureagi-0.5.2/fi/integrations/otel/frameworks/bedrock/__pycache__/package.cpython-312.pyc +0 -0
  183. futureagi-0.5.2/fi/integrations/otel/frameworks/bedrock/__pycache__/package.cpython-313.pyc +0 -0
  184. futureagi-0.5.2/fi/integrations/otel/frameworks/bedrock/__pycache__/version.cpython-312.pyc +0 -0
  185. futureagi-0.5.2/fi/integrations/otel/frameworks/bedrock/__pycache__/version.cpython-313.pyc +0 -0
  186. futureagi-0.5.2/fi/integrations/otel/frameworks/bedrock/utils/__pycache__/__init__.cpython-312.pyc +0 -0
  187. futureagi-0.5.2/fi/integrations/otel/frameworks/bedrock/utils/__pycache__/__init__.cpython-313.pyc +0 -0
  188. futureagi-0.5.2/fi/integrations/otel/frameworks/bedrock/utils/anthropic/__pycache__/__init__.cpython-312.pyc +0 -0
  189. futureagi-0.5.2/fi/integrations/otel/frameworks/bedrock/utils/anthropic/__pycache__/__init__.cpython-313.pyc +0 -0
  190. futureagi-0.5.2/fi/integrations/otel/frameworks/bedrock/utils/anthropic/__pycache__/_messages.cpython-312.pyc +0 -0
  191. futureagi-0.5.2/fi/integrations/otel/frameworks/bedrock/utils/anthropic/__pycache__/_messages.cpython-313.pyc +0 -0
  192. futureagi-0.5.2/fi/integrations/otel/frameworks/crewai/__pycache__/__init__.cpython-312.pyc +0 -0
  193. futureagi-0.5.2/fi/integrations/otel/frameworks/crewai/__pycache__/__init__.cpython-313.pyc +0 -0
  194. futureagi-0.5.2/fi/integrations/otel/frameworks/crewai/__pycache__/_wrappers.cpython-312.pyc +0 -0
  195. futureagi-0.5.2/fi/integrations/otel/frameworks/crewai/__pycache__/_wrappers.cpython-313.pyc +0 -0
  196. futureagi-0.5.2/fi/integrations/otel/frameworks/crewai/__pycache__/version.cpython-312.pyc +0 -0
  197. futureagi-0.5.2/fi/integrations/otel/frameworks/crewai/__pycache__/version.cpython-313.pyc +0 -0
  198. futureagi-0.5.2/fi/integrations/otel/frameworks/dspy/__pycache__/__init__.cpython-312.pyc +0 -0
  199. futureagi-0.5.2/fi/integrations/otel/frameworks/dspy/__pycache__/__init__.cpython-313.pyc +0 -0
  200. futureagi-0.5.2/fi/integrations/otel/frameworks/dspy/__pycache__/package.cpython-312.pyc +0 -0
  201. futureagi-0.5.2/fi/integrations/otel/frameworks/dspy/__pycache__/package.cpython-313.pyc +0 -0
  202. futureagi-0.5.2/fi/integrations/otel/frameworks/dspy/__pycache__/version.cpython-312.pyc +0 -0
  203. futureagi-0.5.2/fi/integrations/otel/frameworks/dspy/__pycache__/version.cpython-313.pyc +0 -0
  204. futureagi-0.5.2/fi/integrations/otel/frameworks/groq/__pycache__/__init__.cpython-312.pyc +0 -0
  205. futureagi-0.5.2/fi/integrations/otel/frameworks/groq/__pycache__/__init__.cpython-313.pyc +0 -0
  206. futureagi-0.5.2/fi/integrations/otel/frameworks/groq/__pycache__/_request_attributes_extractor.cpython-312.pyc +0 -0
  207. futureagi-0.5.2/fi/integrations/otel/frameworks/groq/__pycache__/_request_attributes_extractor.cpython-313.pyc +0 -0
  208. futureagi-0.5.2/fi/integrations/otel/frameworks/groq/__pycache__/_response_attributes_extractor.cpython-312.pyc +0 -0
  209. futureagi-0.5.2/fi/integrations/otel/frameworks/groq/__pycache__/_response_attributes_extractor.cpython-313.pyc +0 -0
  210. futureagi-0.5.2/fi/integrations/otel/frameworks/groq/__pycache__/_utils.cpython-312.pyc +0 -0
  211. futureagi-0.5.2/fi/integrations/otel/frameworks/groq/__pycache__/_utils.cpython-313.pyc +0 -0
  212. futureagi-0.5.2/fi/integrations/otel/frameworks/groq/__pycache__/_with_span.cpython-312.pyc +0 -0
  213. futureagi-0.5.2/fi/integrations/otel/frameworks/groq/__pycache__/_with_span.cpython-313.pyc +0 -0
  214. futureagi-0.5.2/fi/integrations/otel/frameworks/groq/__pycache__/_wrappers.cpython-312.pyc +0 -0
  215. futureagi-0.5.2/fi/integrations/otel/frameworks/groq/__pycache__/_wrappers.cpython-313.pyc +0 -0
  216. futureagi-0.5.2/fi/integrations/otel/frameworks/groq/__pycache__/version.cpython-312.pyc +0 -0
  217. futureagi-0.5.2/fi/integrations/otel/frameworks/groq/__pycache__/version.cpython-313.pyc +0 -0
  218. futureagi-0.5.2/fi/integrations/otel/frameworks/groq/_utils.py +0 -95
  219. futureagi-0.5.2/fi/integrations/otel/frameworks/groq/_wrappers.py +0 -266
  220. futureagi-0.5.2/fi/integrations/otel/frameworks/haystack/__pycache__/__init__.cpython-312.pyc +0 -0
  221. futureagi-0.5.2/fi/integrations/otel/frameworks/haystack/__pycache__/__init__.cpython-313.pyc +0 -0
  222. futureagi-0.5.2/fi/integrations/otel/frameworks/haystack/__pycache__/_wrappers.cpython-312.pyc +0 -0
  223. futureagi-0.5.2/fi/integrations/otel/frameworks/haystack/__pycache__/_wrappers.cpython-313.pyc +0 -0
  224. futureagi-0.5.2/fi/integrations/otel/frameworks/haystack/__pycache__/version.cpython-312.pyc +0 -0
  225. futureagi-0.5.2/fi/integrations/otel/frameworks/haystack/__pycache__/version.cpython-313.pyc +0 -0
  226. futureagi-0.5.2/fi/integrations/otel/frameworks/instructor/__pycache__/__init__.cpython-312.pyc +0 -0
  227. futureagi-0.5.2/fi/integrations/otel/frameworks/instructor/__pycache__/__init__.cpython-313.pyc +0 -0
  228. futureagi-0.5.2/fi/integrations/otel/frameworks/instructor/__pycache__/_wrappers.cpython-312.pyc +0 -0
  229. futureagi-0.5.2/fi/integrations/otel/frameworks/instructor/__pycache__/_wrappers.cpython-313.pyc +0 -0
  230. futureagi-0.5.2/fi/integrations/otel/frameworks/instructor/__pycache__/version.cpython-312.pyc +0 -0
  231. futureagi-0.5.2/fi/integrations/otel/frameworks/instructor/__pycache__/version.cpython-313.pyc +0 -0
  232. futureagi-0.5.2/fi/integrations/otel/frameworks/instructor/_wrappers.py +0 -249
  233. futureagi-0.5.2/fi/integrations/otel/frameworks/langchain/__pycache__/__init__.cpython-312.pyc +0 -0
  234. futureagi-0.5.2/fi/integrations/otel/frameworks/langchain/__pycache__/__init__.cpython-313.pyc +0 -0
  235. futureagi-0.5.2/fi/integrations/otel/frameworks/langchain/__pycache__/_tracer.cpython-312.pyc +0 -0
  236. futureagi-0.5.2/fi/integrations/otel/frameworks/langchain/__pycache__/_tracer.cpython-313.pyc +0 -0
  237. futureagi-0.5.2/fi/integrations/otel/frameworks/langchain/__pycache__/package.cpython-312.pyc +0 -0
  238. futureagi-0.5.2/fi/integrations/otel/frameworks/langchain/__pycache__/package.cpython-313.pyc +0 -0
  239. futureagi-0.5.2/fi/integrations/otel/frameworks/langchain/__pycache__/version.cpython-312.pyc +0 -0
  240. futureagi-0.5.2/fi/integrations/otel/frameworks/langchain/__pycache__/version.cpython-313.pyc +0 -0
  241. futureagi-0.5.2/fi/integrations/otel/frameworks/litellm/__pycache__/__init__.cpython-312.pyc +0 -0
  242. futureagi-0.5.2/fi/integrations/otel/frameworks/litellm/__pycache__/__init__.cpython-313.pyc +0 -0
  243. futureagi-0.5.2/fi/integrations/otel/frameworks/litellm/__pycache__/package.cpython-312.pyc +0 -0
  244. futureagi-0.5.2/fi/integrations/otel/frameworks/litellm/__pycache__/package.cpython-313.pyc +0 -0
  245. futureagi-0.5.2/fi/integrations/otel/frameworks/litellm/__pycache__/version.cpython-312.pyc +0 -0
  246. futureagi-0.5.2/fi/integrations/otel/frameworks/litellm/__pycache__/version.cpython-313.pyc +0 -0
  247. futureagi-0.5.2/fi/integrations/otel/frameworks/litellm/examples/litellm_test.py +0 -98
  248. futureagi-0.5.2/fi/integrations/otel/frameworks/llama_index/__pycache__/__init__.cpython-312.pyc +0 -0
  249. futureagi-0.5.2/fi/integrations/otel/frameworks/llama_index/__pycache__/__init__.cpython-313.pyc +0 -0
  250. futureagi-0.5.2/fi/integrations/otel/frameworks/llama_index/__pycache__/package.cpython-312.pyc +0 -0
  251. futureagi-0.5.2/fi/integrations/otel/frameworks/llama_index/__pycache__/package.cpython-313.pyc +0 -0
  252. futureagi-0.5.2/fi/integrations/otel/frameworks/llama_index/__pycache__/version.cpython-312.pyc +0 -0
  253. futureagi-0.5.2/fi/integrations/otel/frameworks/llama_index/__pycache__/version.cpython-313.pyc +0 -0
  254. futureagi-0.5.2/fi/integrations/otel/frameworks/mistralai/__pycache__/__init__.cpython-312.pyc +0 -0
  255. futureagi-0.5.2/fi/integrations/otel/frameworks/mistralai/__pycache__/__init__.cpython-313.pyc +0 -0
  256. futureagi-0.5.2/fi/integrations/otel/frameworks/mistralai/__pycache__/_chat_wrapper.cpython-312.pyc +0 -0
  257. futureagi-0.5.2/fi/integrations/otel/frameworks/mistralai/__pycache__/_chat_wrapper.cpython-313.pyc +0 -0
  258. futureagi-0.5.2/fi/integrations/otel/frameworks/mistralai/__pycache__/_request_attributes_extractor.cpython-312.pyc +0 -0
  259. futureagi-0.5.2/fi/integrations/otel/frameworks/mistralai/__pycache__/_request_attributes_extractor.cpython-313.pyc +0 -0
  260. futureagi-0.5.2/fi/integrations/otel/frameworks/mistralai/__pycache__/_response_accumulator.cpython-312.pyc +0 -0
  261. futureagi-0.5.2/fi/integrations/otel/frameworks/mistralai/__pycache__/_response_accumulator.cpython-313.pyc +0 -0
  262. futureagi-0.5.2/fi/integrations/otel/frameworks/mistralai/__pycache__/_response_attributes_extractor.cpython-312.pyc +0 -0
  263. futureagi-0.5.2/fi/integrations/otel/frameworks/mistralai/__pycache__/_response_attributes_extractor.cpython-313.pyc +0 -0
  264. futureagi-0.5.2/fi/integrations/otel/frameworks/mistralai/__pycache__/_stream.cpython-312.pyc +0 -0
  265. futureagi-0.5.2/fi/integrations/otel/frameworks/mistralai/__pycache__/_stream.cpython-313.pyc +0 -0
  266. futureagi-0.5.2/fi/integrations/otel/frameworks/mistralai/__pycache__/_utils.cpython-312.pyc +0 -0
  267. futureagi-0.5.2/fi/integrations/otel/frameworks/mistralai/__pycache__/_utils.cpython-313.pyc +0 -0
  268. futureagi-0.5.2/fi/integrations/otel/frameworks/mistralai/__pycache__/_with_span.cpython-312.pyc +0 -0
  269. futureagi-0.5.2/fi/integrations/otel/frameworks/mistralai/__pycache__/_with_span.cpython-313.pyc +0 -0
  270. futureagi-0.5.2/fi/integrations/otel/frameworks/mistralai/__pycache__/package.cpython-312.pyc +0 -0
  271. futureagi-0.5.2/fi/integrations/otel/frameworks/mistralai/__pycache__/package.cpython-313.pyc +0 -0
  272. futureagi-0.5.2/fi/integrations/otel/frameworks/mistralai/__pycache__/version.cpython-312.pyc +0 -0
  273. futureagi-0.5.2/fi/integrations/otel/frameworks/mistralai/__pycache__/version.cpython-313.pyc +0 -0
  274. futureagi-0.5.2/fi/integrations/otel/frameworks/openai/__pycache__/__init__.cpython-312.pyc +0 -0
  275. futureagi-0.5.2/fi/integrations/otel/frameworks/openai/__pycache__/__init__.cpython-313.pyc +0 -0
  276. futureagi-0.5.2/fi/integrations/otel/frameworks/openai/__pycache__/_request.cpython-312.pyc +0 -0
  277. futureagi-0.5.2/fi/integrations/otel/frameworks/openai/__pycache__/_request.cpython-313.pyc +0 -0
  278. futureagi-0.5.2/fi/integrations/otel/frameworks/openai/__pycache__/_request_attributes_extractor.cpython-312.pyc +0 -0
  279. futureagi-0.5.2/fi/integrations/otel/frameworks/openai/__pycache__/_request_attributes_extractor.cpython-313.pyc +0 -0
  280. futureagi-0.5.2/fi/integrations/otel/frameworks/openai/__pycache__/_response_accumulator.cpython-312.pyc +0 -0
  281. futureagi-0.5.2/fi/integrations/otel/frameworks/openai/__pycache__/_response_accumulator.cpython-313.pyc +0 -0
  282. futureagi-0.5.2/fi/integrations/otel/frameworks/openai/__pycache__/_response_attributes_extractor.cpython-312.pyc +0 -0
  283. futureagi-0.5.2/fi/integrations/otel/frameworks/openai/__pycache__/_response_attributes_extractor.cpython-313.pyc +0 -0
  284. futureagi-0.5.2/fi/integrations/otel/frameworks/openai/__pycache__/_span_io_handler.cpython-312.pyc +0 -0
  285. futureagi-0.5.2/fi/integrations/otel/frameworks/openai/__pycache__/_span_io_handler.cpython-313.pyc +0 -0
  286. futureagi-0.5.2/fi/integrations/otel/frameworks/openai/__pycache__/_stream.cpython-312.pyc +0 -0
  287. futureagi-0.5.2/fi/integrations/otel/frameworks/openai/__pycache__/_stream.cpython-313.pyc +0 -0
  288. futureagi-0.5.2/fi/integrations/otel/frameworks/openai/__pycache__/_utils.cpython-312.pyc +0 -0
  289. futureagi-0.5.2/fi/integrations/otel/frameworks/openai/__pycache__/_utils.cpython-313.pyc +0 -0
  290. futureagi-0.5.2/fi/integrations/otel/frameworks/openai/__pycache__/_with_span.cpython-312.pyc +0 -0
  291. futureagi-0.5.2/fi/integrations/otel/frameworks/openai/__pycache__/_with_span.cpython-313.pyc +0 -0
  292. futureagi-0.5.2/fi/integrations/otel/frameworks/openai/__pycache__/package.cpython-312.pyc +0 -0
  293. futureagi-0.5.2/fi/integrations/otel/frameworks/openai/__pycache__/package.cpython-313.pyc +0 -0
  294. futureagi-0.5.2/fi/integrations/otel/frameworks/openai/__pycache__/version.cpython-312.pyc +0 -0
  295. futureagi-0.5.2/fi/integrations/otel/frameworks/openai/__pycache__/version.cpython-313.pyc +0 -0
  296. futureagi-0.5.2/fi/integrations/otel/frameworks/openai/_stream.py +0 -204
  297. futureagi-0.5.2/fi/integrations/otel/frameworks/vertexai/__pycache__/__init__.cpython-312.pyc +0 -0
  298. futureagi-0.5.2/fi/integrations/otel/frameworks/vertexai/__pycache__/__init__.cpython-313.pyc +0 -0
  299. futureagi-0.5.2/fi/integrations/otel/frameworks/vertexai/__pycache__/_instrumentation_status.cpython-312.pyc +0 -0
  300. futureagi-0.5.2/fi/integrations/otel/frameworks/vertexai/__pycache__/_instrumentation_status.cpython-313.pyc +0 -0
  301. futureagi-0.5.2/fi/integrations/otel/frameworks/vertexai/__pycache__/package.cpython-312.pyc +0 -0
  302. futureagi-0.5.2/fi/integrations/otel/frameworks/vertexai/__pycache__/package.cpython-313.pyc +0 -0
  303. futureagi-0.5.2/fi/integrations/otel/frameworks/vertexai/__pycache__/version.cpython-312.pyc +0 -0
  304. futureagi-0.5.2/fi/integrations/otel/frameworks/vertexai/__pycache__/version.cpython-313.pyc +0 -0
  305. futureagi-0.5.2/fi/integrations/otel/instrumentation/__pycache__/__init__.cpython-312.pyc +0 -0
  306. futureagi-0.5.2/fi/integrations/otel/instrumentation/__pycache__/__init__.cpython-313.pyc +0 -0
  307. futureagi-0.5.2/fi/integrations/otel/instrumentation/__pycache__/config.cpython-312.pyc +0 -0
  308. futureagi-0.5.2/fi/integrations/otel/instrumentation/__pycache__/config.cpython-313.pyc +0 -0
  309. futureagi-0.5.2/fi/integrations/otel/instrumentation/__pycache__/context_attributes.cpython-312.pyc +0 -0
  310. futureagi-0.5.2/fi/integrations/otel/instrumentation/__pycache__/context_attributes.cpython-313.pyc +0 -0
  311. futureagi-0.5.2/fi/integrations/otel/instrumentation/__pycache__/helpers.cpython-312.pyc +0 -0
  312. futureagi-0.5.2/fi/integrations/otel/instrumentation/__pycache__/helpers.cpython-313.pyc +0 -0
  313. futureagi-0.5.2/fi/integrations/otel/instrumentation/__pycache__/logging.cpython-312.pyc +0 -0
  314. futureagi-0.5.2/fi/integrations/otel/instrumentation/__pycache__/logging.cpython-313.pyc +0 -0
  315. futureagi-0.5.2/fi/integrations/providers/__pycache__/__init__.cpython-310.pyc +0 -0
  316. futureagi-0.5.2/fi/integrations/providers/__pycache__/__init__.cpython-312.pyc +0 -0
  317. futureagi-0.5.2/fi/integrations/providers/__pycache__/__init__.cpython-313.pyc +0 -0
  318. futureagi-0.5.2/fi/integrations/providers/__pycache__/types.cpython-310.pyc +0 -0
  319. futureagi-0.5.2/fi/integrations/providers/__pycache__/types.cpython-312.pyc +0 -0
  320. futureagi-0.5.2/fi/integrations/providers/__pycache__/types.cpython-313.pyc +0 -0
  321. futureagi-0.5.2/fi/prompt/__pycache__/__init__.cpython-310.pyc +0 -0
  322. futureagi-0.5.2/fi/prompt/__pycache__/client.cpython-310.pyc +0 -0
  323. futureagi-0.5.2/fi/prompt/__pycache__/types.cpython-310.pyc +0 -0
  324. futureagi-0.5.2/fi/test/__pycache__/eval_tags.cpython-312.pyc +0 -0
  325. futureagi-0.5.2/fi/test/__pycache__/eval_tags.cpython-313.pyc +0 -0
  326. futureagi-0.5.2/fi/testcases/__pycache__/__init__.cpython-310.pyc +0 -0
  327. futureagi-0.5.2/fi/testcases/__pycache__/__init__.cpython-312.pyc +0 -0
  328. futureagi-0.5.2/fi/testcases/__pycache__/__init__.cpython-313.pyc +0 -0
  329. futureagi-0.5.2/fi/testcases/__pycache__/conversational_test_case.cpython-310.pyc +0 -0
  330. futureagi-0.5.2/fi/testcases/__pycache__/conversational_test_case.cpython-312.pyc +0 -0
  331. futureagi-0.5.2/fi/testcases/__pycache__/conversational_test_case.cpython-313.pyc +0 -0
  332. futureagi-0.5.2/fi/testcases/__pycache__/general.cpython-310.pyc +0 -0
  333. futureagi-0.5.2/fi/testcases/__pycache__/general.cpython-312.pyc +0 -0
  334. futureagi-0.5.2/fi/testcases/__pycache__/general.cpython-313.pyc +0 -0
  335. futureagi-0.5.2/fi/testcases/__pycache__/llm_test_case.cpython-310.pyc +0 -0
  336. futureagi-0.5.2/fi/testcases/__pycache__/llm_test_case.cpython-312.pyc +0 -0
  337. futureagi-0.5.2/fi/testcases/__pycache__/llm_test_case.cpython-313.pyc +0 -0
  338. futureagi-0.5.2/fi/testcases/__pycache__/mllm_test_case.cpython-310.pyc +0 -0
  339. futureagi-0.5.2/fi/testcases/__pycache__/mllm_test_case.cpython-312.pyc +0 -0
  340. futureagi-0.5.2/fi/testcases/__pycache__/mllm_test_case.cpython-313.pyc +0 -0
  341. futureagi-0.5.2/fi/utils/__pycache__/__init__.cpython-310.pyc +0 -0
  342. futureagi-0.5.2/fi/utils/__pycache__/__init__.cpython-312.pyc +0 -0
  343. futureagi-0.5.2/fi/utils/__pycache__/__init__.cpython-313.pyc +0 -0
  344. futureagi-0.5.2/fi/utils/__pycache__/constants.cpython-310.pyc +0 -0
  345. futureagi-0.5.2/fi/utils/__pycache__/constants.cpython-312.pyc +0 -0
  346. futureagi-0.5.2/fi/utils/__pycache__/constants.cpython-313.pyc +0 -0
  347. futureagi-0.5.2/fi/utils/__pycache__/errors.cpython-310.pyc +0 -0
  348. futureagi-0.5.2/fi/utils/__pycache__/errors.cpython-312.pyc +0 -0
  349. futureagi-0.5.2/fi/utils/__pycache__/errors.cpython-313.pyc +0 -0
  350. futureagi-0.5.2/fi/utils/__pycache__/executor.cpython-310.pyc +0 -0
  351. futureagi-0.5.2/fi/utils/__pycache__/executor.cpython-312.pyc +0 -0
  352. futureagi-0.5.2/fi/utils/__pycache__/executor.cpython-313.pyc +0 -0
  353. futureagi-0.5.2/fi/utils/__pycache__/logging.cpython-310.pyc +0 -0
  354. futureagi-0.5.2/fi/utils/__pycache__/logging.cpython-312.pyc +0 -0
  355. futureagi-0.5.2/fi/utils/__pycache__/logging.cpython-313.pyc +0 -0
  356. futureagi-0.5.2/fi/utils/__pycache__/routes.cpython-310.pyc +0 -0
  357. futureagi-0.5.2/fi/utils/__pycache__/routes.cpython-312.pyc +0 -0
  358. futureagi-0.5.2/fi/utils/__pycache__/routes.cpython-313.pyc +0 -0
  359. futureagi-0.5.2/fi/utils/__pycache__/types.cpython-310.pyc +0 -0
  360. futureagi-0.5.2/fi/utils/__pycache__/types.cpython-312.pyc +0 -0
  361. futureagi-0.5.2/fi/utils/__pycache__/types.cpython-313.pyc +0 -0
  362. futureagi-0.5.2/fi/utils/__pycache__/utils.cpython-310.pyc +0 -0
  363. futureagi-0.5.2/fi/utils/__pycache__/utils.cpython-313.pyc +0 -0
  364. {futureagi-0.5.2 → futureagi-0.5.4}/LICENSE.md +0 -0
  365. {futureagi-0.5.2 → futureagi-0.5.4}/README.md +0 -0
  366. {futureagi-0.5.2 → futureagi-0.5.4}/fi/__init__.py +0 -0
  367. {futureagi-0.5.2 → futureagi-0.5.4}/fi/api/__init__.py +0 -0
  368. {futureagi-0.5.2 → futureagi-0.5.4}/fi/api/apikeys.py +0 -0
  369. {futureagi-0.5.2 → futureagi-0.5.4}/fi/api/auth.py +0 -0
  370. {futureagi-0.5.2 → futureagi-0.5.4}/fi/api/types.py +0 -0
  371. {futureagi-0.5.2 → futureagi-0.5.4}/fi/client.py +0 -0
  372. {futureagi-0.5.2 → futureagi-0.5.4}/fi/datasets/__init__.py +0 -0
  373. {futureagi-0.5.2 → futureagi-0.5.4}/fi/datasets/client.py +0 -0
  374. {futureagi-0.5.2 → futureagi-0.5.4}/fi/datasets/types.py +0 -0
  375. {futureagi-0.5.2 → futureagi-0.5.4}/fi/evals/__init__.py +0 -0
  376. {futureagi-0.5.2 → futureagi-0.5.4}/fi/evals/evaluator.py +0 -0
  377. {futureagi-0.5.2 → futureagi-0.5.4}/fi/evals/templates.py +0 -0
  378. {futureagi-0.5.2 → futureagi-0.5.4}/fi/evals/types.py +0 -0
  379. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/__init__.py +0 -0
  380. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/__init__.py +0 -0
  381. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/anthropic/examples/anthropic.sh +0 -0
  382. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/anthropic/examples/requirements.txt +0 -0
  383. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/anthropic/version.py +0 -0
  384. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/bedrock/__generated__/__init__.py +0 -0
  385. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/bedrock/__generated__/anthropic/__init__.py +0 -0
  386. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/bedrock/__generated__/anthropic/_types.py +0 -0
  387. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/bedrock/__init__.py +0 -0
  388. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/bedrock/_proxy.py +0 -0
  389. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/bedrock/examples/bedrock.sh +0 -0
  390. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/bedrock/package.py +0 -0
  391. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/bedrock/py.typed +0 -0
  392. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/bedrock/utils/__init__.py +0 -0
  393. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/bedrock/utils/anthropic/__init__.py +0 -0
  394. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/bedrock/utils/anthropic/_messages.py +0 -0
  395. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/bedrock/version.py +0 -0
  396. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/crewai/__init__.py +0 -0
  397. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/crewai/version.py +0 -0
  398. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/dspy/examples/dspy.sh +0 -0
  399. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/dspy/examples/requirements.txt +0 -0
  400. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/dspy/package.py +0 -0
  401. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/dspy/py.typed +0 -0
  402. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/dspy/version.py +0 -0
  403. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/groq/__init__.py +0 -0
  404. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/groq/_with_span.py +0 -0
  405. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/groq/examples/groq.sh +0 -0
  406. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/groq/version.py +0 -0
  407. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/haystack/__init__.py +0 -0
  408. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/haystack/_wrappers.py +0 -0
  409. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/haystack/examples/haystack.sh +0 -0
  410. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/haystack/examples/requirements.txt +0 -0
  411. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/haystack/version.py +0 -0
  412. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/instructor/__init__.py +0 -0
  413. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/instructor/version.py +0 -0
  414. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/langchain/__init__.py +0 -0
  415. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/langchain/examples/documents/2402.03300v3.pdf +0 -0
  416. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/langchain/examples/documents/2501.04519v1.pdf +0 -0
  417. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/langchain/examples/documents/2501.19393v2.pdf +0 -0
  418. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/langchain/examples/langchain.sh +0 -0
  419. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/langchain/examples/requirements.txt +0 -0
  420. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/langchain/package.py +0 -0
  421. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/langchain/version.py +0 -0
  422. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/litellm/package.py +0 -0
  423. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/litellm/py.typed +0 -0
  424. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/litellm/version.py +0 -0
  425. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/llama_index/__init__.py +0 -0
  426. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/llama_index/_callback.py +0 -0
  427. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/llama_index/examples/llama_index.sh +0 -0
  428. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/llama_index/examples/requirements.txt +0 -0
  429. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/llama_index/package.py +0 -0
  430. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/llama_index/py.typed +0 -0
  431. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/llama_index/version.py +0 -0
  432. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/mistralai/__init__.py +0 -0
  433. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/mistralai/_response_attributes_extractor.py +0 -0
  434. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/mistralai/_with_span.py +0 -0
  435. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/mistralai/examples/mistralai.sh +0 -0
  436. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/mistralai/examples/requirements.txt +0 -0
  437. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/mistralai/package.py +0 -0
  438. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/mistralai/py.typed +0 -0
  439. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/mistralai/version.py +0 -0
  440. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/openai/__init__.py +0 -0
  441. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/openai/_request_attributes_extractor.py +0 -0
  442. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/openai/_response_attributes_extractor.py +0 -0
  443. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/openai/_with_span.py +0 -0
  444. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/openai/examples/openai.sh +0 -0
  445. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/openai/examples/requirements.txt +0 -0
  446. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/openai/package.py +0 -0
  447. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/openai/py.typed +0 -0
  448. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/openai/test-requirements.txt +0 -0
  449. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/openai/version.py +0 -0
  450. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/vertexai/__init__.py +0 -0
  451. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/vertexai/_accumulator.py +0 -0
  452. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/vertexai/_instrumentation_status.py +0 -0
  453. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/vertexai/_proxy.py +0 -0
  454. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/vertexai/examples/requirements.txt +0 -0
  455. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/vertexai/examples/vertexai.sh +0 -0
  456. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/vertexai/package.py +0 -0
  457. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/vertexai/py.typed +0 -0
  458. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/frameworks/vertexai/version.py +0 -0
  459. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/instrumentation/.gitignore +0 -0
  460. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/instrumentation/__init__.py +0 -0
  461. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/instrumentation/config.py +0 -0
  462. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/instrumentation/context_attributes.py +0 -0
  463. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/instrumentation/helpers.py +0 -0
  464. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/instrumentation/logging.py +0 -0
  465. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/otel/instrumentation/version.py +0 -0
  466. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/providers/__init__.py +0 -0
  467. {futureagi-0.5.2 → futureagi-0.5.4}/fi/integrations/providers/types.py +0 -0
  468. {futureagi-0.5.2 → futureagi-0.5.4}/fi/prompt/__init__.py +0 -0
  469. {futureagi-0.5.2 → futureagi-0.5.4}/fi/prompt/types.py +0 -0
  470. {futureagi-0.5.2 → futureagi-0.5.4}/fi/testcases/__init__.py +0 -0
  471. {futureagi-0.5.2 → futureagi-0.5.4}/fi/testcases/conversational_test_case.py +0 -0
  472. {futureagi-0.5.2 → futureagi-0.5.4}/fi/testcases/general.py +0 -0
  473. {futureagi-0.5.2 → futureagi-0.5.4}/fi/testcases/llm_test_case.py +0 -0
  474. {futureagi-0.5.2 → futureagi-0.5.4}/fi/testcases/mllm_test_case.py +0 -0
  475. {futureagi-0.5.2 → futureagi-0.5.4}/fi/testcases/utils.py +0 -0
  476. {futureagi-0.5.2 → futureagi-0.5.4}/fi/utils/__init__.py +0 -0
  477. {futureagi-0.5.2 → futureagi-0.5.4}/fi/utils/constants.py +0 -0
  478. {futureagi-0.5.2 → futureagi-0.5.4}/fi/utils/errors.py +0 -0
  479. {futureagi-0.5.2 → futureagi-0.5.4}/fi/utils/executor.py +0 -0
  480. {futureagi-0.5.2 → futureagi-0.5.4}/fi/utils/logging.py +0 -0
  481. {futureagi-0.5.2 → futureagi-0.5.4}/fi/utils/routes.py +0 -0
  482. {futureagi-0.5.2 → futureagi-0.5.4}/fi/utils/types.py +0 -0
  483. {futureagi-0.5.2 → futureagi-0.5.4}/fi/utils/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: futureagi
3
- Version: 0.5.2
3
+ Version: 0.5.4
4
4
  Summary: We help GenAI teams maintain high-accuracy for their Models in production.
5
5
  Author: Future AGI
6
6
  Author-email: no-reply@futureagi.com
@@ -1,7 +1,7 @@
1
+ import copy
1
2
  import time
2
3
  from concurrent.futures import ThreadPoolExecutor, TimeoutError, as_completed
3
4
  from typing import Dict, List, Optional, Tuple
4
- import copy
5
5
 
6
6
  from fi.evals import EvalClient
7
7
  from fi.evals.templates import (
@@ -198,7 +198,6 @@ class ProtectClient:
198
198
 
199
199
  protect_rules_copy = copy.deepcopy(protect_rules)
200
200
 
201
-
202
201
  # Validate inputs
203
202
  if inputs is None:
204
203
  raise ValueError("inputs cannot be None")
@@ -359,7 +358,9 @@ class ProtectClient:
359
358
 
360
359
  if remaining_time <= 0:
361
360
  # Add remaining rules to uncompleted list
362
- remaining_rules = [rule["metric"] for rule in protect_rules_copy[i:]]
361
+ remaining_rules = [
362
+ rule["metric"] for rule in protect_rules_copy[i:]
363
+ ]
363
364
  all_uncompleted_rules.extend(remaining_rules)
364
365
  break
365
366
 
@@ -385,12 +386,12 @@ class ProtectClient:
385
386
  "completed_rules": all_completed_rules,
386
387
  "uncompleted_rules": all_uncompleted_rules,
387
388
  "failed_rule": failed_rule,
388
- "messages": all_failure_messages[0]
389
- if all_failure_messages
390
- else "All checks passed",
391
- "reasons": all_failure_reasons[0]
392
- if all_failure_reasons
393
- else "All checks passed",
389
+ "messages": (
390
+ all_failure_messages[0] if all_failure_messages else "All checks passed"
391
+ ),
392
+ "reasons": (
393
+ all_failure_reasons[0] if all_failure_reasons else "All checks passed"
394
+ ),
394
395
  "time_taken": elapsed_time,
395
396
  }
396
397
 
@@ -38,11 +38,9 @@ class AnthropicInstrumentor(BaseInstrumentor): # type: ignore[misc]
38
38
  return _instruments
39
39
 
40
40
  def _instrument(self, **kwargs: Any) -> None:
41
- print("Starting instrumentation process...")
42
41
  from anthropic.resources.completions import AsyncCompletions, Completions
43
42
  from anthropic.resources.messages import AsyncMessages, Messages
44
43
 
45
- print(f"Initializing with tracer_provider: {kwargs.get('tracer_provider')}")
46
44
  if not (tracer_provider := kwargs.get("tracer_provider")):
47
45
  tracer_provider = trace_api.get_tracer_provider()
48
46
  if not (config := kwargs.get("config")):
@@ -50,13 +48,11 @@ class AnthropicInstrumentor(BaseInstrumentor): # type: ignore[misc]
50
48
  else:
51
49
  assert isinstance(config, TraceConfig)
52
50
 
53
- print("Creating FITracer instance...")
54
51
  self._tracer = FITracer(
55
52
  trace_api.get_tracer(__name__, __version__, tracer_provider),
56
53
  config=config,
57
54
  )
58
55
 
59
- print("Wrapping Completions.create...")
60
56
  self._original_completions_create = Completions.create
61
57
  wrap_function_wrapper(
62
58
  module="anthropic.resources.completions",
@@ -64,7 +60,6 @@ class AnthropicInstrumentor(BaseInstrumentor): # type: ignore[misc]
64
60
  wrapper=_CompletionsWrapper(tracer=self._tracer),
65
61
  )
66
62
 
67
- print("Wrapping AsyncCompletions.create...")
68
63
  self._original_async_completions_create = AsyncCompletions.create
69
64
  wrap_function_wrapper(
70
65
  module="anthropic.resources.completions",
@@ -72,7 +67,6 @@ class AnthropicInstrumentor(BaseInstrumentor): # type: ignore[misc]
72
67
  wrapper=_AsyncCompletionsWrapper(tracer=self._tracer),
73
68
  )
74
69
 
75
- print("Wrapping Messages.create...")
76
70
  self._original_messages_create = Messages.create
77
71
  wrap_function_wrapper(
78
72
  module="anthropic.resources.messages",
@@ -80,7 +74,6 @@ class AnthropicInstrumentor(BaseInstrumentor): # type: ignore[misc]
80
74
  wrapper=_MessagesWrapper(tracer=self._tracer),
81
75
  )
82
76
 
83
- print("Wrapping AsyncMessages.create...")
84
77
  self._original_async_messages_create = AsyncMessages.create
85
78
  wrap_function_wrapper(
86
79
  module="anthropic.resources.messages",
@@ -88,30 +81,22 @@ class AnthropicInstrumentor(BaseInstrumentor): # type: ignore[misc]
88
81
  wrapper=_AsyncMessagesWrapper(tracer=self._tracer),
89
82
  )
90
83
 
91
- print("Wrapping Messages.count_tokens...")
92
84
  wrap_function_wrapper(
93
85
  module="anthropic.resources.messages",
94
86
  name="Messages.count_tokens",
95
87
  wrapper=_MessagesCountTokensWrapper(tracer=self._tracer),
96
88
  )
97
- print("Instrumentation complete!")
98
89
 
99
90
  def _uninstrument(self, **kwargs: Any) -> None:
100
- print("Starting uninstrumentation process...")
101
91
  from anthropic.resources.completions import AsyncCompletions, Completions
102
92
  from anthropic.resources.messages import AsyncMessages, Messages
103
93
 
104
94
  if self._original_completions_create is not None:
105
- print("Restoring original Completions.create...")
106
95
  Completions.create = self._original_completions_create # type: ignore[method-assign]
107
96
  if self._original_async_completions_create is not None:
108
- print("Restoring original AsyncCompletions.create...")
109
97
  AsyncCompletions.create = self._original_async_completions_create # type: ignore[method-assign]
110
98
 
111
99
  if self._original_messages_create is not None:
112
- print("Restoring original Messages.create...")
113
100
  Messages.create = self._original_messages_create # type: ignore[method-assign]
114
101
  if self._original_async_messages_create is not None:
115
- print("Restoring original AsyncMessages.create...")
116
102
  AsyncMessages.create = self._original_async_messages_create # type: ignore[method-assign]
117
- print("Uninstrumentation complete!")
@@ -54,20 +54,16 @@ class _Stream(ObjectProxy): # type: ignore
54
54
  stream: "Stream[Completion]",
55
55
  with_span: _WithSpan,
56
56
  ) -> None:
57
- print("Initializing _Stream wrapper")
58
57
  super().__init__(stream)
59
58
  self._response_accumulator = _ResponseAccumulator()
60
59
  self._with_span = with_span
61
60
 
62
61
  def __iter__(self) -> Iterator["Completion"]:
63
- print("Starting synchronous stream iteration")
64
62
  try:
65
63
  for item in self.__wrapped__:
66
- print(f"Processing stream chunk: {type(item)}")
67
64
  self._response_accumulator.process_chunk(item)
68
65
  yield item
69
66
  except Exception as exception:
70
- print(f"Error in stream iteration: {type(exception).__name__}: {exception}")
71
67
  status = trace_api.Status(
72
68
  status_code=trace_api.StatusCode.ERROR,
73
69
  description=f"{type(exception).__name__}: {exception}",
@@ -75,7 +71,6 @@ class _Stream(ObjectProxy): # type: ignore
75
71
  self._with_span.record_exception(exception)
76
72
  self._finish_tracing(status=status)
77
73
  raise
78
- print("Stream iteration completed successfully")
79
74
  status = trace_api.Status(
80
75
  status_code=trace_api.StatusCode.OK,
81
76
  )
@@ -177,22 +172,16 @@ class _MessagesStream(ObjectProxy): # type: ignore
177
172
  stream: "Stream[RawMessageStreamEvent]",
178
173
  with_span: _WithSpan,
179
174
  ) -> None:
180
- print("Initializing _MessagesStream wrapper")
181
175
  super().__init__(stream)
182
176
  self._response_accumulator = _MessageResponseAccumulator()
183
177
  self._with_span = with_span
184
178
 
185
179
  def __iter__(self) -> Iterator["RawMessageStreamEvent"]:
186
- print("Starting synchronous message stream iteration")
187
180
  try:
188
181
  for item in self.__wrapped__:
189
- print(f"Processing message stream chunk: {type(item)}")
190
182
  self._response_accumulator.process_chunk(item)
191
183
  yield item
192
184
  except Exception as exception:
193
- print(
194
- f"Error in message stream iteration: {type(exception).__name__}: {exception}"
195
- )
196
185
  status = trace_api.Status(
197
186
  status_code=trace_api.StatusCode.ERROR,
198
187
  description=f"{type(exception).__name__}: {exception}",
@@ -200,7 +189,6 @@ class _MessagesStream(ObjectProxy): # type: ignore
200
189
  self._with_span.record_exception(exception)
201
190
  self._finish_tracing(status=status)
202
191
  raise
203
- print("Message stream iteration completed successfully")
204
192
  status = trace_api.Status(
205
193
  status_code=trace_api.StatusCode.OK,
206
194
  )
@@ -285,7 +273,6 @@ class _MessageResponseAccumulator:
285
273
  )
286
274
 
287
275
  def process_chunk(self, chunk: "RawContentBlockDeltaEvent") -> None:
288
- print(f"Processing message chunk of type: {type(chunk)}")
289
276
  from anthropic.types.raw_content_block_delta_event import (
290
277
  RawContentBlockDeltaEvent,
291
278
  )
@@ -299,9 +286,6 @@ class _MessageResponseAccumulator:
299
286
 
300
287
  self._is_null = False
301
288
  if isinstance(chunk, RawMessageStartEvent):
302
- print(
303
- f"Processing message start event. Message index: {self._current_message_idx + 1}"
304
- )
305
289
  self._current_message_idx += 1
306
290
  value = {
307
291
  "messages": {
@@ -312,14 +296,8 @@ class _MessageResponseAccumulator:
312
296
  }
313
297
  self._values += value
314
298
  elif isinstance(chunk, RawContentBlockStartEvent):
315
- print(
316
- f"Processing content block start event. Type: {type(chunk.content_block)}"
317
- )
318
299
  self._current_content_block_type = chunk.content_block
319
300
  elif isinstance(chunk, RawContentBlockDeltaEvent):
320
- print(
321
- f"Processing content block delta event. Current block type: {type(self._current_content_block_type)}"
322
- )
323
301
  if isinstance(self._current_content_block_type, TextBlock):
324
302
  value = {
325
303
  "messages": {
@@ -346,7 +324,6 @@ class _MessageResponseAccumulator:
346
324
  }
347
325
  self._values += value
348
326
  elif isinstance(chunk, RawMessageDeltaEvent):
349
- print("Processing message delta event")
350
327
  value = {
351
328
  "messages": {
352
329
  "index": str(self._current_message_idx),
@@ -4,7 +4,7 @@ from typing import Any, Iterator, NamedTuple, Optional, Protocol, Tuple
4
4
  from opentelemetry import trace as trace_api
5
5
  from opentelemetry.util.types import Attributes, AttributeValue
6
6
 
7
- from fi.integrations.otel.frameworks.mistralai._with_span import _WithSpan
7
+ from fi.integrations.otel.frameworks.anthropic._with_span import _WithSpan
8
8
  from fi.integrations.otel.instrumentation import safe_json_dumps
9
9
  from fi.integrations.otel.types import FiMimeTypeValues, SpanAttributes
10
10
 
@@ -30,29 +30,36 @@ def _finish_tracing(
30
30
  ) -> None:
31
31
  try:
32
32
  attributes: Attributes = dict(has_attributes.get_attributes())
33
- except Exception:
33
+ except Exception as e:
34
34
  logger.exception("Failed to get attributes")
35
35
  attributes = None
36
+
36
37
  try:
37
38
  extra_attributes: Attributes = dict(has_attributes.get_extra_attributes())
38
- except Exception:
39
+ except Exception as e:
39
40
  logger.exception("Failed to get extra attributes")
40
41
  extra_attributes = None
42
+
41
43
  try:
42
44
  with_span.finish_tracing(
43
45
  status=status,
44
46
  attributes=attributes,
45
47
  extra_attributes=extra_attributes,
46
48
  )
47
- except Exception:
49
+ except Exception as e:
50
+ print(f"Failed to finish tracing: {e}")
48
51
  logger.exception("Failed to finish tracing")
52
+ raise
49
53
 
50
54
 
51
55
  def _io_value_and_type(obj: Any) -> _ValueAndType:
52
56
  try:
53
- return _ValueAndType(safe_json_dumps(obj), FiMimeTypeValues.JSON)
54
- except Exception:
57
+ json_value = safe_json_dumps(obj)
58
+ return _ValueAndType(json_value, FiMimeTypeValues.JSON)
59
+ except Exception as e:
60
+ print(f"Failed to serialize as JSON: {e}")
55
61
  logger.exception("Failed to get input attributes from request parameters.")
62
+
56
63
  return _ValueAndType(str(obj), FiMimeTypeValues.TEXT)
57
64
 
58
65
 
@@ -61,8 +68,9 @@ def _as_input_attributes(
61
68
  ) -> Iterator[Tuple[str, AttributeValue]]:
62
69
  if not value_and_type:
63
70
  return
71
+
64
72
  yield SpanAttributes.INPUT_VALUE, value_and_type.value
65
- # It's assumed to be TEXT by default, so we can skip to save one attribute.
73
+
66
74
  if value_and_type.type is not FiMimeTypeValues.TEXT:
67
75
  yield SpanAttributes.INPUT_MIME_TYPE, value_and_type.type.value
68
76
 
@@ -72,7 +80,8 @@ def _as_output_attributes(
72
80
  ) -> Iterator[Tuple[str, AttributeValue]]:
73
81
  if not value_and_type:
74
82
  return
83
+
75
84
  yield SpanAttributes.OUTPUT_VALUE, value_and_type.value
76
- # It's assumed to be TEXT by default, so we can skip to save one attribute.
85
+
77
86
  if value_and_type.type is not FiMimeTypeValues.TEXT:
78
87
  yield SpanAttributes.OUTPUT_MIME_TYPE, value_and_type.type.value
@@ -18,13 +18,9 @@ class _WithSpan:
18
18
  self,
19
19
  span: trace_api.Span,
20
20
  ) -> None:
21
- print(f"Initializing _WithSpan with span: {span}")
22
21
  self._span = span
23
22
  try:
24
23
  self._is_finished = not self._span.is_recording()
25
- print(
26
- f"Span recording status: {'recording' if not self._is_finished else 'not recording'}"
27
- )
28
24
  except Exception:
29
25
  logger.exception("Failed to check if span is recording")
30
26
  print("Error checking span recording status, defaulting to finished")
@@ -38,16 +34,12 @@ class _WithSpan:
38
34
  self._span.set_attribute(key, value)
39
35
 
40
36
  def set_attributes(self, attributes: Dict[str, AttributeValue]) -> None:
41
- print(f"Setting attributes: {attributes}")
42
-
43
37
  self._span.set_attributes(attributes)
44
38
 
45
39
  def record_exception(self, exception: Exception) -> None:
46
40
  if self._is_finished:
47
- print(f"Skipping exception recording - span is finished: {exception}")
48
41
  return
49
42
  try:
50
- print(f"Recording exception: {type(exception).__name__}: {exception}")
51
43
  self._span.record_exception(exception)
52
44
  except Exception:
53
45
  logger.exception("Failed to record exception on span")
@@ -55,10 +47,8 @@ class _WithSpan:
55
47
 
56
48
  def set_status(self, status: Union[trace_api.Status, trace_api.StatusCode]) -> None:
57
49
  if self._is_finished:
58
- print(f"Skipping status setting - span is finished: {status}")
59
50
  return
60
51
  try:
61
- print(f"Setting span status: {status}")
62
52
  self._span.set_status(status=status)
63
53
  except Exception:
64
54
  logger.exception("Failed to set status on span")
@@ -66,10 +56,8 @@ class _WithSpan:
66
56
 
67
57
  def add_event(self, name: str) -> None:
68
58
  if self._is_finished:
69
- print(f"Skipping event addition - span is finished: {name}")
70
59
  return
71
60
  try:
72
- print(f"Adding event: {name}")
73
61
  self._span.add_event(name)
74
62
  except Exception:
75
63
  logger.exception("Failed to add event to span")
@@ -82,19 +70,15 @@ class _WithSpan:
82
70
  extra_attributes: Attributes = None,
83
71
  ) -> None:
84
72
  if self._is_finished:
85
- print("Skipping finish_tracing - span is already finished")
86
73
  return
87
74
 
88
- print("Starting finish_tracing process")
89
75
  for mapping in (attributes, extra_attributes):
90
76
  if not mapping:
91
77
  continue
92
- print(f"Processing attributes mapping: {mapping}")
93
78
  for key, value in mapping.items():
94
79
  if value is None:
95
80
  continue
96
81
  try:
97
- print(f"Setting attribute: {key}={value}")
98
82
  self._span.set_attribute(key, value)
99
83
  except Exception:
100
84
  logger.exception("Failed to set attribute on span")
@@ -102,18 +86,15 @@ class _WithSpan:
102
86
 
103
87
  if status is not None:
104
88
  try:
105
- print(f"Setting final status: {status}")
106
89
  self._span.set_status(status=status)
107
90
  except Exception:
108
91
  logger.exception("Failed to set status code on span")
109
92
  print("Error setting final status")
110
93
 
111
94
  try:
112
- print("Ending span")
113
95
  self._span.end()
114
96
  except Exception:
115
97
  logger.exception("Failed to end span")
116
98
  print("Error ending span")
117
99
 
118
100
  self._is_finished = True
119
- print("Span finished successfully")
@@ -32,6 +32,7 @@ from fi.integrations.otel.types import (
32
32
  FiMimeTypeValues,
33
33
  FiSpanKindValues,
34
34
  MessageAttributes,
35
+ MessageContentAttributes,
35
36
  SpanAttributes,
36
37
  ToolAttributes,
37
38
  ToolCallAttributes,
@@ -56,7 +57,6 @@ class _WithTracer(ABC):
56
57
  def _start_as_current_span(
57
58
  self, span_name: str, attributes: Optional[Mapping[str, Any]] = None
58
59
  ) -> Iterator[_WithSpan]:
59
- print(f"Starting span: {span_name} with attributes: {attributes}")
60
60
  try:
61
61
  span = self._tracer.start_span(
62
62
  name=span_name,
@@ -64,7 +64,6 @@ class _WithTracer(ABC):
64
64
  set_status_on_exception=False,
65
65
  attributes=attributes,
66
66
  )
67
- print(f"Successfully created span: {span}")
68
67
  except Exception as e:
69
68
  print(f"Error creating span: {e}")
70
69
  span = INVALID_SPAN
@@ -115,7 +114,7 @@ class _CompletionsWrapper(_BaseWrapper):
115
114
  return wrapped(*args, **kwargs)
116
115
 
117
116
  arguments = kwargs
118
- llm_prompt = dict(arguments).pop("prompt", None)
117
+ llm_prompt = dict(arguments).pop("system", None)
119
118
  llm_input_messages = dict(arguments).pop("messages", None)
120
119
  llm_invocation_parameters = _get_invocation_parameters(arguments)
121
120
 
@@ -146,7 +145,6 @@ class _CompletionsWrapper(_BaseWrapper):
146
145
  ),
147
146
  ) as span:
148
147
  try:
149
- print("Calling wrapped completion function")
150
148
  response = wrapped(*args, **kwargs)
151
149
  span.set_attributes(dict(_get_raw_output(response)))
152
150
 
@@ -166,13 +164,10 @@ class _CompletionsWrapper(_BaseWrapper):
166
164
  span.record_exception(exception)
167
165
  raise
168
166
 
169
- print("Completion successful, processing response")
170
167
  streaming = kwargs.get("stream", False)
171
168
  if streaming:
172
- print("Returning streaming response")
173
169
  return _Stream(response, span)
174
170
  else:
175
- print("Processing non-streaming response")
176
171
  span.set_status(trace_api.StatusCode.OK)
177
172
  span.set_attributes(dict(_get_outputs(response)))
178
173
  span.finish_tracing()
@@ -196,7 +191,7 @@ class _AsyncCompletionsWrapper(_WithTracer):
196
191
  return await wrapped(*args, **kwargs)
197
192
 
198
193
  arguments = kwargs
199
- llm_prompt = dict(arguments).pop("prompt", None)
194
+ llm_prompt = dict(arguments).pop("system", None)
200
195
  llm_input_messages = dict(arguments).pop("messages", None)
201
196
  invocation_parameters = _get_invocation_parameters(arguments)
202
197
 
@@ -264,6 +259,7 @@ class _MessagesWrapper(_BaseWrapper):
264
259
 
265
260
  arguments = kwargs
266
261
  llm_input_messages = dict(arguments).pop("messages", None)
262
+ llm_prompt = dict(arguments).pop("system", None)
267
263
  invocation_parameters = _get_invocation_parameters(arguments)
268
264
 
269
265
  extracted_data = _extract_image_data(llm_input_messages)
@@ -281,6 +277,7 @@ class _MessagesWrapper(_BaseWrapper):
281
277
  _get_llm_provider(),
282
278
  _get_llm_system(),
283
279
  _get_llm_span_kind(),
280
+ _get_llm_prompts(llm_prompt),
284
281
  _get_llm_input_messages(llm_input_messages),
285
282
  _get_llm_invocation_parameters(invocation_parameters),
286
283
  _get_llm_tools(invocation_parameters),
@@ -301,7 +298,6 @@ class _MessagesWrapper(_BaseWrapper):
301
298
  # Get output content
302
299
  output_content = None
303
300
  if hasattr(response, "content"):
304
- print("Processing response content", response.content)
305
301
  if isinstance(response.content, list):
306
302
  for block in response.content:
307
303
  if hasattr(block, "text"):
@@ -357,6 +353,7 @@ class _AsyncMessagesWrapper(_WithTracer):
357
353
  return await wrapped(*args, **kwargs)
358
354
 
359
355
  arguments = kwargs
356
+ llm_prompt = dict(arguments).pop("system", None)
360
357
  llm_input_messages = dict(arguments).pop("messages", None)
361
358
  invocation_parameters = _get_invocation_parameters(arguments)
362
359
 
@@ -375,6 +372,7 @@ class _AsyncMessagesWrapper(_WithTracer):
375
372
  _get_llm_system(),
376
373
  _get_llm_model_name_from_input(arguments),
377
374
  _get_llm_span_kind(),
375
+ _get_llm_prompts(llm_prompt),
378
376
  _get_llm_input_messages(llm_input_messages),
379
377
  _get_llm_invocation_parameters(invocation_parameters),
380
378
  _get_llm_tools(invocation_parameters),
@@ -431,6 +429,7 @@ class _MessagesCountTokensWrapper(_BaseWrapper):
431
429
 
432
430
  arguments = kwargs
433
431
  llm_input_messages = arguments.get("messages", None)
432
+ llm_prompt = dict(arguments).pop("system", None)
434
433
 
435
434
  extracted_data = _extract_image_data(llm_input_messages)
436
435
  llm_input_messages = extracted_data["filtered_messages"]
@@ -447,6 +446,7 @@ class _MessagesCountTokensWrapper(_BaseWrapper):
447
446
  _get_llm_provider(),
448
447
  _get_llm_system(),
449
448
  _get_llm_span_kind(),
449
+ _get_llm_prompts(llm_prompt),
450
450
  _get_llm_input_messages(llm_input_messages),
451
451
  _get_inputs(llm_input_messages),
452
452
  _get_image_inputs(input_images),
@@ -479,18 +479,15 @@ class _MessagesCountTokensWrapper(_BaseWrapper):
479
479
 
480
480
 
481
481
  def _get_inputs(arguments: Mapping[str, Any]) -> Iterator[Tuple[str, Any]]:
482
- print(f"Getting inputs from arguments: {arguments}")
483
482
  yield INPUT_VALUE, safe_json_dumps(arguments)
484
483
  yield INPUT_MIME_TYPE, JSON
485
484
 
486
485
 
487
486
  def _get_raw_input(arguments: Mapping[str, Any]) -> Iterator[Tuple[str, Any]]:
488
- print(f"Getting raw input from arguments: {arguments}")
489
487
  yield RAW_INPUT, safe_json_dumps(arguments)
490
488
 
491
489
 
492
490
  def _get_raw_output(response) -> Iterator[Tuple[str, Any]]:
493
- print(f"Getting raw output from response: {response}")
494
491
  if isinstance(response, (Message, MessageTokensCount)):
495
492
  yield RAW_OUTPUT, safe_json_dumps(response.to_dict())
496
493
  elif hasattr(response, "to_dict"):
@@ -547,6 +544,12 @@ def _extract_image_data(messages):
547
544
  data = source.get("data")
548
545
  if data:
549
546
  input_images.append(data)
547
+ image_index = len(input_images) - 1
548
+ eval_input.append(
549
+ "{{"
550
+ + f"{SpanAttributes.INPUT_IMAGES}.{image_index}"
551
+ + "}}"
552
+ )
550
553
  else:
551
554
  # Keep non-image content
552
555
  filtered_content.append(item)
@@ -562,7 +565,7 @@ def _extract_image_data(messages):
562
565
  return {
563
566
  "input_images": input_images if input_images else None,
564
567
  "filtered_messages": filtered_messages if filtered_messages else None,
565
- "eval_input": " | ".join(eval_input),
568
+ "eval_input": "\n".join(eval_input),
566
569
  "query": str(eval_input[0]) if eval_input else None,
567
570
  }
568
571
  except Exception as e:
@@ -586,14 +589,11 @@ def _get_eval_input(input: Any) -> Iterator[Tuple[str, Any]]:
586
589
 
587
590
 
588
591
  def _get_outputs(response: "BaseModel") -> Iterator[Tuple[str, Any]]:
589
- print(f"Getting outputs from response: {response}")
590
592
  yield OUTPUT_VALUE, response.model_dump_json()
591
593
  yield OUTPUT_MIME_TYPE, JSON
592
594
 
593
595
 
594
596
  def _get_async_outputs(response: "BaseModel") -> Iterator[Tuple[str, Any]]:
595
- print(f"Getting outputs from response: {response}")
596
-
597
597
  output_value = response
598
598
  if hasattr(response, "content"):
599
599
  content = response.content
@@ -613,11 +613,9 @@ def _get_async_outputs(response: "BaseModel") -> Iterator[Tuple[str, Any]]:
613
613
  def _get_llm_tools(
614
614
  invocation_parameters: Mapping[str, Any]
615
615
  ) -> Iterator[Tuple[str, Any]]:
616
- print(f"Processing LLM tools from parameters: {invocation_parameters}")
617
616
  if isinstance(tools := invocation_parameters.get("tools"), list):
618
617
  yield LLM_TOOLS, safe_json_dumps(tools)
619
618
  for tool_index, tool_schema in enumerate(tools):
620
- print(f"Processing tool {tool_index}: {tool_schema}")
621
619
  yield f"{LLM_TOOLS}.{tool_index}.{TOOL_JSON_SCHEMA}", safe_json_dumps(
622
620
  tool_schema
623
621
  )
@@ -660,25 +658,20 @@ def _get_llm_invocation_parameters(
660
658
 
661
659
 
662
660
  def _get_llm_prompts(prompt: str) -> Iterator[Tuple[str, Any]]:
663
- yield LLM_PROMPTS, [prompt]
661
+ yield LLM_PROMPTS, safe_json_dumps(prompt)
664
662
 
665
663
 
666
664
  def _get_llm_input_messages(messages: List[Dict[str, str]]) -> Any:
667
- print(f"Processing input messages: {len(messages)} messages")
668
665
  from anthropic.types import TextBlock, ToolUseBlock
669
666
 
670
667
  for i in range(len(messages)):
671
- print(f"Processing message {i}")
672
668
  tool_index = 0
673
669
  if content := messages[i].get("content"):
674
670
  if isinstance(content, str):
675
- print(f"Processing string content: {content[:100]}... (truncated)")
676
671
  yield f"{LLM_INPUT_MESSAGES}.{i}.{MESSAGE_CONTENT}", content
677
672
  elif isinstance(content, list):
678
- print(f"Processing content blocks: {len(content)} blocks")
679
- for block in content:
673
+ for block_index, block in enumerate(content):
680
674
  if isinstance(block, ToolUseBlock):
681
- print(f"Processing ToolUseBlock: {block}")
682
675
  if tool_call_id := block.id:
683
676
  yield (
684
677
  f"{LLM_INPUT_MESSAGES}.{i}.{MESSAGE_TOOL_CALLS}.{tool_index}.{TOOL_CALL_ID}",
@@ -694,12 +687,9 @@ def _get_llm_input_messages(messages: List[Dict[str, str]]) -> Any:
694
687
  )
695
688
  tool_index += 1
696
689
  elif isinstance(block, TextBlock):
697
- print(
698
- f"Processing TextBlock: {block.text[:100]}... (truncated)"
699
- )
700
- yield f"{LLM_INPUT_MESSAGES}.{i}.{MESSAGE_CONTENT}", block.text
690
+ yield f"{LLM_INPUT_MESSAGES}.{i}.{MESSAGE_CONTENT}.{block_index}.{MESSAGE_CONTENT_TYPE}", "text"
691
+ yield f"{LLM_INPUT_MESSAGES}.{i}.{MESSAGE_CONTENT}.{block_index}.{MESSAGE_CONTENT_TEXT}", block.text
701
692
  elif isinstance(block, dict):
702
- print(f"Processing dict block: {block}")
703
693
  block_type = block.get("type")
704
694
  if block_type == "tool_use":
705
695
  if (tool_call_id := block.get("id")) is not None:
@@ -732,7 +722,8 @@ def _get_llm_input_messages(messages: List[Dict[str, str]]) -> Any:
732
722
  ),
733
723
  )
734
724
  elif block_type == "text":
735
- yield f"{LLM_INPUT_MESSAGES}.{i}.{MESSAGE_CONTENT}", block.get(
725
+ yield f"{LLM_INPUT_MESSAGES}.{i}.{MESSAGE_CONTENT}.{block_index}.{MESSAGE_CONTENT_TYPE}", "text"
726
+ yield f"{LLM_INPUT_MESSAGES}.{i}.{MESSAGE_CONTENT}.{block_index}.{MESSAGE_CONTENT_TEXT}", block.get(
736
727
  "text"
737
728
  )
738
729
 
@@ -741,11 +732,9 @@ def _get_llm_input_messages(messages: List[Dict[str, str]]) -> Any:
741
732
 
742
733
 
743
734
  def _get_invocation_parameters(kwargs: Mapping[str, Any]) -> Any:
744
- print("Extracting invocation parameters")
745
735
  invocation_parameters = {}
746
736
  for key, value in kwargs.items():
747
737
  if _validate_invocation_parameter(key):
748
- print(f"Adding valid parameter: {key}")
749
738
  invocation_parameters[key] = value
750
739
  return invocation_parameters
751
740
 
@@ -854,3 +843,6 @@ LLM_PROVIDER = SpanAttributes.LLM_PROVIDER
854
843
  LLM_SYSTEM = SpanAttributes.LLM_SYSTEM
855
844
  LLM_PROVIDER_ANTHROPIC = FiLLMProviderValues.ANTHROPIC.value
856
845
  LLM_SYSTEM_ANTHROPIC = FiLLMSystemValues.ANTHROPIC.value
846
+ MESSAGE_CONTENT_TEXT = MessageContentAttributes.MESSAGE_CONTENT_TEXT
847
+ MESSAGE_CONTENT_IMAGE = MessageContentAttributes.MESSAGE_CONTENT_IMAGE
848
+ MESSAGE_CONTENT_TYPE = MessageContentAttributes.MESSAGE_CONTENT_TYPE