mantisdk 0.1.2__tar.gz → 0.1.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.
- {mantisdk-0.1.2 → mantisdk-0.1.4}/PKG-INFO +11 -7
- {mantisdk-0.1.2 → mantisdk-0.1.4}/README.md +7 -4
- {mantisdk-0.1.2 → mantisdk-0.1.4}/pyproject.toml +8 -6
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/__init__.py +10 -2
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/llm_proxy.py +14 -1
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/tracing/__init__.py +21 -12
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/tracing/api.py +259 -58
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/tracing/init.py +2 -29
- mantisdk-0.1.4/src/mantisdk/tracing/semconv.py +82 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/.gitignore +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/LICENSE +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/PUBLISHING.md +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/adapter/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/adapter/base.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/adapter/messages.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/adapter/triplet.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/apo/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/apo/apo.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/apo/prompts/apply_edit_variant01.poml +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/apo/prompts/apply_edit_variant02.poml +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/apo/prompts/text_gradient_variant01.poml +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/apo/prompts/text_gradient_variant02.poml +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/apo/prompts/text_gradient_variant03.poml +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/base.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/decorator.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/fast.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/adapter.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/gepa.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/README.md +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/anymaths_adapter/README.md +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/anymaths_adapter/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/anymaths_adapter/anymaths_adapter.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/anymaths_adapter/requirements.txt +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/default_adapter/README.md +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/default_adapter/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/default_adapter/default_adapter.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/dspy_adapter/README.md +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/dspy_adapter/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/dspy_adapter/dspy_adapter.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/dspy_full_program_adapter/README.md +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/dspy_full_program_adapter/dspy_program_proposal_signature.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/dspy_full_program_adapter/full_program_adapter.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/generic_rag_adapter/GEPA_RAG.md +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/generic_rag_adapter/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/generic_rag_adapter/evaluation_metrics.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/generic_rag_adapter/generic_rag_adapter.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/generic_rag_adapter/rag_pipeline.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/generic_rag_adapter/vector_store_interface.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/generic_rag_adapter/vector_stores/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/generic_rag_adapter/vector_stores/chroma_store.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/generic_rag_adapter/vector_stores/lancedb_store.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/generic_rag_adapter/vector_stores/milvus_store.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/generic_rag_adapter/vector_stores/qdrant_store.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/generic_rag_adapter/vector_stores/weaviate_store.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/mcp_adapter/README.md +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/mcp_adapter/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/mcp_adapter/mcp_adapter.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/mcp_adapter/mcp_client.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/terminal_bench_adapter/README.md +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/terminal_bench_adapter/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/adapters/terminal_bench_adapter/terminal_bench_adapter.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/api.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/core/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/core/adapter.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/core/data_loader.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/core/engine.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/core/result.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/core/state.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/examples/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/examples/aime.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/examples/anymaths-bench/eval_default.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/examples/anymaths-bench/prompt-templates/instruction_prompt.txt +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/examples/anymaths-bench/prompt-templates/optimal_prompt.txt +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/examples/anymaths-bench/train_anymaths.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/examples/dspy_full_program_evolution/arc_agi.ipynb +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/examples/dspy_full_program_evolution/example.ipynb +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/examples/mcp_adapter/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/examples/mcp_adapter/mcp_optimization_example.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/examples/rag_adapter/RAG_GUIDE.md +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/examples/rag_adapter/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/examples/rag_adapter/rag_optimization.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/examples/rag_adapter/requirements-rag.txt +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/examples/terminal-bench/prompt-templates/instruction_prompt.txt +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/examples/terminal-bench/prompt-templates/terminus.txt +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/examples/terminal-bench/train_terminus.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/gepa_utils.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/logging/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/logging/experiment_tracker.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/logging/logger.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/logging/utils.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/proposer/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/proposer/base.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/proposer/merge.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/proposer/reflective_mutation/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/proposer/reflective_mutation/base.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/proposer/reflective_mutation/reflective_mutation.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/py.typed +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/strategies/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/strategies/batch_sampler.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/strategies/candidate_selector.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/strategies/component_selector.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/strategies/eval_policy.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/strategies/instruction_proposal.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/utils/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/lib/utils/stop_condition.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/gepa/tracing.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/utils.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/verl/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/algorithm/verl/interface.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/cli/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/cli/prometheus.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/cli/store.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/cli/vllm.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/client.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/config.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/emitter/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/emitter/annotation.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/emitter/exception.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/emitter/message.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/emitter/object.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/emitter/reward.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/env_var.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/execution/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/execution/base.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/execution/client_server.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/execution/events.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/execution/inter_process.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/execution/shared_memory.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/instrumentation/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/instrumentation/agentops.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/instrumentation/agentops_langchain.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/instrumentation/litellm.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/instrumentation/vllm.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/instrumentation/weave.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/litagent/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/litagent/decorator.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/litagent/litagent.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/logging.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/reward.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/runner/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/runner/agent.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/runner/base.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/runner/legacy.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/semconv.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/server.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/store/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/store/base.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/store/client_server.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/store/collection/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/store/collection/base.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/store/collection/memory.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/store/collection/mongo.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/store/collection_based.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/store/insight.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/store/listener.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/store/memory.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/store/mongo.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/store/sqlite.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/store/threading.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/store/utils.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/tracer/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/tracer/agentops.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/tracer/base.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/tracer/dummy.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/tracer/otel.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/tracer/weave.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/tracing/attributes.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/tracing/exporters/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/tracing/exporters/insight.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/tracing/instrumentors/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/tracing/instrumentors/claude_agent_sdk.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/tracing/instrumentors/instrumentation_principles.md +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/tracing/instrumentors/registry.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/trainer/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/trainer/init_utils.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/trainer/legacy.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/trainer/registry.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/trainer/trainer.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/types/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/types/core.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/types/resources.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/types/tracer.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/types/tracing.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/utils/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/utils/id.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/utils/metrics.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/utils/otel.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/utils/otlp.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/utils/server_launcher.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/utils/system_snapshot.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/verl/__init__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/verl/__main__.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/verl/async_server.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/verl/config.yaml +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/verl/daemon.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/verl/dataset.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/verl/entrypoint.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/src/mantisdk/verl/trainer.py +0 -0
- {mantisdk-0.1.2 → mantisdk-0.1.4}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mantisdk
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: Mantisdk - AI Agent Training and Evaluation Platform
|
|
5
5
|
Project-URL: Homepage, https://github.com/withmetis/mantis
|
|
6
6
|
Project-URL: Documentation, https://withmetis.github.io/mantis/mantisdk/
|
|
@@ -19,7 +19,6 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.12
|
|
20
20
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
21
21
|
Requires-Python: >=3.10
|
|
22
|
-
Requires-Dist: agentops>=0.4.13
|
|
23
22
|
Requires-Dist: aiohttp
|
|
24
23
|
Requires-Dist: aiologic
|
|
25
24
|
Requires-Dist: fastapi
|
|
@@ -28,7 +27,7 @@ Requires-Dist: gepa>=0.0.24
|
|
|
28
27
|
Requires-Dist: gpustat
|
|
29
28
|
Requires-Dist: graphviz
|
|
30
29
|
Requires-Dist: gunicorn
|
|
31
|
-
Requires-Dist: litellm
|
|
30
|
+
Requires-Dist: litellm>=1.74
|
|
32
31
|
Requires-Dist: openai
|
|
33
32
|
Requires-Dist: opentelemetry-api>=1.35
|
|
34
33
|
Requires-Dist: opentelemetry-exporter-otlp>=1.35
|
|
@@ -44,6 +43,8 @@ Provides-Extra: apo
|
|
|
44
43
|
Requires-Dist: poml; extra == 'apo'
|
|
45
44
|
Provides-Extra: mongo
|
|
46
45
|
Requires-Dist: pymongo; extra == 'mongo'
|
|
46
|
+
Provides-Extra: proxy
|
|
47
|
+
Requires-Dist: litellm[proxy]>=1.74; extra == 'proxy'
|
|
47
48
|
Provides-Extra: verl
|
|
48
49
|
Requires-Dist: verl>=0.5.0; extra == 'verl'
|
|
49
50
|
Requires-Dist: vllm>=0.8.4; extra == 'verl'
|
|
@@ -76,17 +77,20 @@ pip install mantisdk
|
|
|
76
77
|
For optional dependencies:
|
|
77
78
|
|
|
78
79
|
```bash
|
|
80
|
+
# For LLMProxy feature (note: has strict dependency pins for boto3, grpcio, uvicorn)
|
|
81
|
+
pip install 'mantisdk[proxy]'
|
|
82
|
+
|
|
79
83
|
# For APO (Automatic Prompt Optimization)
|
|
80
|
-
pip install mantisdk[apo]
|
|
84
|
+
pip install 'mantisdk[apo]'
|
|
81
85
|
|
|
82
86
|
# For VERL integration
|
|
83
|
-
pip install mantisdk[verl]
|
|
87
|
+
pip install 'mantisdk[verl]'
|
|
84
88
|
|
|
85
89
|
# For Weave integration
|
|
86
|
-
pip install mantisdk[weave]
|
|
90
|
+
pip install 'mantisdk[weave]'
|
|
87
91
|
|
|
88
92
|
# For MongoDB store
|
|
89
|
-
pip install mantisdk[mongo]
|
|
93
|
+
pip install 'mantisdk[mongo]'
|
|
90
94
|
```
|
|
91
95
|
|
|
92
96
|
## Quick Start
|
|
@@ -23,17 +23,20 @@ pip install mantisdk
|
|
|
23
23
|
For optional dependencies:
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
+
# For LLMProxy feature (note: has strict dependency pins for boto3, grpcio, uvicorn)
|
|
27
|
+
pip install 'mantisdk[proxy]'
|
|
28
|
+
|
|
26
29
|
# For APO (Automatic Prompt Optimization)
|
|
27
|
-
pip install mantisdk[apo]
|
|
30
|
+
pip install 'mantisdk[apo]'
|
|
28
31
|
|
|
29
32
|
# For VERL integration
|
|
30
|
-
pip install mantisdk[verl]
|
|
33
|
+
pip install 'mantisdk[verl]'
|
|
31
34
|
|
|
32
35
|
# For Weave integration
|
|
33
|
-
pip install mantisdk[weave]
|
|
36
|
+
pip install 'mantisdk[weave]'
|
|
34
37
|
|
|
35
38
|
# For MongoDB store
|
|
36
|
-
pip install mantisdk[mongo]
|
|
39
|
+
pip install 'mantisdk[mongo]'
|
|
37
40
|
```
|
|
38
41
|
|
|
39
42
|
## Quick Start
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "mantisdk"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.4"
|
|
4
4
|
description = "Mantisdk - AI Agent Training and Evaluation Platform"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.10"
|
|
@@ -28,14 +28,13 @@ dependencies = [
|
|
|
28
28
|
"gpustat",
|
|
29
29
|
"setproctitle",
|
|
30
30
|
"flask",
|
|
31
|
-
"agentops>=0.4.13",
|
|
32
31
|
"uvicorn",
|
|
33
32
|
"fastapi",
|
|
34
33
|
"aiohttp",
|
|
35
34
|
"opentelemetry-api>=1.35",
|
|
36
35
|
"opentelemetry-sdk>=1.35",
|
|
37
36
|
"opentelemetry-exporter-otlp>=1.35",
|
|
38
|
-
"litellm
|
|
37
|
+
"litellm>=1.74",
|
|
39
38
|
"pydantic>=2.11",
|
|
40
39
|
"openai",
|
|
41
40
|
"rich",
|
|
@@ -56,6 +55,12 @@ Issues = "https://github.com/withmetis/mantis/issues"
|
|
|
56
55
|
msk = "mantisdk.cli:main"
|
|
57
56
|
|
|
58
57
|
[project.optional-dependencies]
|
|
58
|
+
# LLMProxy feature requires litellm[proxy] which has strict dependency pins
|
|
59
|
+
# that may conflict with other packages (boto3, grpcio, uvicorn).
|
|
60
|
+
# Install with: pip install 'mantisdk[proxy]'
|
|
61
|
+
proxy = [
|
|
62
|
+
"litellm[proxy]>=1.74",
|
|
63
|
+
]
|
|
59
64
|
apo = [
|
|
60
65
|
"poml",
|
|
61
66
|
]
|
|
@@ -100,11 +105,9 @@ experiment = [
|
|
|
100
105
|
]
|
|
101
106
|
|
|
102
107
|
core-legacy = [
|
|
103
|
-
"agentops<=0.4.18",
|
|
104
108
|
"openai<2.0.0",
|
|
105
109
|
]
|
|
106
110
|
core-stable = [
|
|
107
|
-
"agentops>=0.4.21",
|
|
108
111
|
"openai>=2.0.0",
|
|
109
112
|
]
|
|
110
113
|
|
|
@@ -334,7 +337,6 @@ testpaths = ["tests"]
|
|
|
334
337
|
markers = [
|
|
335
338
|
"openai: tests that require OpenAI API",
|
|
336
339
|
"gpu: tests that require GPU",
|
|
337
|
-
"agentops: tests that require AgentOps",
|
|
338
340
|
"weave: tests that require Weave",
|
|
339
341
|
"llmproxy: tests that require LiteLLM",
|
|
340
342
|
"mongo: tests that require MongoDB",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Copyright (c) Microsoft. All rights reserved.
|
|
2
2
|
|
|
3
|
-
__version__ = "0.1.
|
|
3
|
+
__version__ = "0.1.4"
|
|
4
4
|
|
|
5
5
|
from .adapter import *
|
|
6
6
|
from .algorithm import *
|
|
@@ -10,7 +10,15 @@ from .emitter import *
|
|
|
10
10
|
from .env_var import *
|
|
11
11
|
from .execution import *
|
|
12
12
|
from .litagent import *
|
|
13
|
-
|
|
13
|
+
|
|
14
|
+
# LLMProxy requires litellm[proxy] which has strict dependency pins.
|
|
15
|
+
# Make import optional to avoid conflicts for users who don't need this feature.
|
|
16
|
+
# Install with: pip install 'mantisdk[proxy]'
|
|
17
|
+
try:
|
|
18
|
+
from .llm_proxy import *
|
|
19
|
+
except ImportError:
|
|
20
|
+
pass # LLMProxy not available without litellm[proxy] extras
|
|
21
|
+
|
|
14
22
|
from .logging import configure_logger # deprecated # type: ignore
|
|
15
23
|
from .logging import setup as setup_logging # type: ignore
|
|
16
24
|
from .logging import setup_module as setup_module_logging # type: ignore
|
|
@@ -39,7 +39,20 @@ from fastapi import Request, Response
|
|
|
39
39
|
from fastapi.responses import StreamingResponse
|
|
40
40
|
from litellm.integrations.custom_logger import CustomLogger
|
|
41
41
|
from litellm.integrations.opentelemetry import OpenTelemetry, OpenTelemetryConfig
|
|
42
|
-
|
|
42
|
+
|
|
43
|
+
# litellm.proxy requires the [proxy] extras which have strict dependency pins
|
|
44
|
+
# (boto3, grpcio, uvicorn) that may conflict with other packages.
|
|
45
|
+
# Install with: pip install 'mantisdk[proxy]'
|
|
46
|
+
try:
|
|
47
|
+
from litellm.proxy.proxy_server import app, save_worker_config # pyright: ignore[reportUnknownVariableType]
|
|
48
|
+
except ImportError as e:
|
|
49
|
+
raise ImportError(
|
|
50
|
+
"LLMProxy requires litellm[proxy] extras which are not installed. "
|
|
51
|
+
"The litellm[proxy] extras have strict dependency pins (boto3, grpcio, uvicorn) "
|
|
52
|
+
"that may conflict with other packages in your environment. "
|
|
53
|
+
"To use LLMProxy, install with: pip install 'mantisdk[proxy]'"
|
|
54
|
+
) from e
|
|
55
|
+
|
|
43
56
|
from litellm.types.utils import CallTypes
|
|
44
57
|
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
|
|
45
58
|
from opentelemetry.sdk.resources import Resource
|
|
@@ -3,25 +3,29 @@
|
|
|
3
3
|
"""Standalone tracing module for MantisDK.
|
|
4
4
|
|
|
5
5
|
This module provides a "one-liner" entry point for instrumenting applications
|
|
6
|
-
with OpenTelemetry, compatible with OpenInference
|
|
6
|
+
with OpenTelemetry, compatible with OpenInference ecosystem,
|
|
7
7
|
while natively supporting export to Mantis Insight.
|
|
8
8
|
|
|
9
9
|
Example usage::
|
|
10
10
|
|
|
11
|
-
import mantisdk.
|
|
11
|
+
import mantisdk.tracing as tracing
|
|
12
12
|
|
|
13
13
|
# Auto-detect Insight from environment variables
|
|
14
14
|
tracing.init()
|
|
15
15
|
|
|
16
|
-
# Use
|
|
17
|
-
with tracing.trace("my-workflow"):
|
|
18
|
-
with tracing.span("step-1"):
|
|
19
|
-
do_work()
|
|
20
|
-
|
|
21
|
-
# Use decorators
|
|
16
|
+
# Use as a decorator (auto-captures input/output)
|
|
22
17
|
@tracing.trace
|
|
23
|
-
def my_function():
|
|
24
|
-
|
|
18
|
+
def my_function(query: str) -> dict:
|
|
19
|
+
return {"result": query.upper()}
|
|
20
|
+
|
|
21
|
+
# Use as a context manager (explicit input/output)
|
|
22
|
+
with tracing.trace("my-workflow", input=query) as span:
|
|
23
|
+
result = do_work()
|
|
24
|
+
span.set_attribute(tracing.semconv.TRACE_OUTPUT, result)
|
|
25
|
+
|
|
26
|
+
# Use semantic conventions for rich metadata
|
|
27
|
+
span.set_attribute(tracing.semconv.USER_ID, "user-123")
|
|
28
|
+
span.set_attribute(tracing.semconv.SESSION_ID, "session-456")
|
|
25
29
|
|
|
26
30
|
# Ensure spans are flushed on shutdown
|
|
27
31
|
tracing.shutdown()
|
|
@@ -34,7 +38,8 @@ Environment variables for Insight auto-detect:
|
|
|
34
38
|
"""
|
|
35
39
|
|
|
36
40
|
from .init import init, instrument, shutdown, flush
|
|
37
|
-
from .api import trace, span, tool, atrace, aspan
|
|
41
|
+
from .api import trace, span, tool, atrace, aspan, get_current_span
|
|
42
|
+
from . import semconv
|
|
38
43
|
|
|
39
44
|
# Re-export exporter factory for explicit configuration
|
|
40
45
|
from .exporters.insight import insight as insight_exporter
|
|
@@ -45,13 +50,17 @@ __all__ = [
|
|
|
45
50
|
"instrument",
|
|
46
51
|
"shutdown",
|
|
47
52
|
"flush",
|
|
48
|
-
# Context managers (sync)
|
|
53
|
+
# Context managers / decorators (sync)
|
|
49
54
|
"trace",
|
|
50
55
|
"span",
|
|
51
56
|
"tool",
|
|
52
57
|
# Context managers (async)
|
|
53
58
|
"atrace",
|
|
54
59
|
"aspan",
|
|
60
|
+
# Span utilities
|
|
61
|
+
"get_current_span",
|
|
62
|
+
# Semantic conventions
|
|
63
|
+
"semconv",
|
|
55
64
|
# Exporter factory
|
|
56
65
|
"insight_exporter",
|
|
57
66
|
]
|