synth-ai 0.2.6.dev3__tar.gz → 0.2.6.dev5__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.
Potentially problematic release.
This version of synth-ai might be problematic. Click here for more details.
- {synth_ai-0.2.6.dev3/synth_ai.egg-info → synth_ai-0.2.6.dev5}/PKG-INFO +1 -1
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/pyproject.toml +1 -1
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/__init__.py +1 -1
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/demos/core/cli.py +108 -141
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5/synth_ai.egg-info}/PKG-INFO +1 -1
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/LICENSE +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/MANIFEST.in +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/README.md +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/setup.cfg +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/__main__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/cli/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/cli/balance.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/cli/calc.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/cli/demo.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/cli/legacy_root_backup.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/cli/man.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/cli/recent.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/cli/rl_demo.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/cli/root.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/cli/status.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/cli/traces.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/cli/watch.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/compound/cais.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/config/base_url.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/core/experiment.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/core/system.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/demos/core/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/demos/demo_task_apps/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/demos/demo_task_apps/core.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/demos/demo_task_apps/math/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/demos/demo_task_apps/math/_common.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/demos/demo_task_apps/math/app.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/demos/demo_task_apps/math/config.toml +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/demos/demo_task_apps/math/deploy_modal.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/demos/demo_task_apps/math/deploy_task_app.sh +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/demos/demo_task_apps/math/modal_task_app.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/environment/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/environment/artifacts/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/environment/artifacts/base.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/environment/core.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/environment/db/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/environment/db/sqlite.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/environment/registry.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/environment/resources/sqlite.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/environment/results.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/environment/rewards/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/environment/rewards/core.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/environment/shared_engine.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/environment/tools/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/bandit/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/bandit/engine.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/bandit/environment.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/bandit/taskset.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/analyze_semantic_words_markdown.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_comprehensive_evaluation.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_evaluation_browser.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_evaluation_config.toml +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_evaluation_framework.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_modal_ft/crafter_synth_config.toml +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_modal_ft/filter_config_modal.toml +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_modal_ft/filter_traces_sft_turso.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_modal_ft/kick_off_ft_modal.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_modal_ft/old/analyze_action_results.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_modal_ft/old/analyze_agent_actions.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_modal_ft/old/analyze_latest_run.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_modal_ft/old/analyze_lm_traces.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_modal_ft/old/analyze_no_rewards.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_modal_ft/old/analyze_trace_issue.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_modal_ft/old/check_db_schema.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_modal_ft/old/check_latest_results.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_modal_ft/old/debug_agent_responses.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_modal_ft/old/quick_trace_check.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_openai_ft/compare_experiments.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_openai_ft/filter_traces_sft_turso.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_openai_ft/kick_off_ft_oai.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_openai_ft/multi_model_config.toml +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_openai_ft/old/analyze_enhanced_hooks.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_openai_ft/old/analyze_hook_events.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_openai_ft/old/analyze_hook_results.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_openai_ft/old/check_hook_storage.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_openai_ft/old/check_seeds.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_openai_ft/old/compare_seed_performance.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_openai_ft/old/custom_eval_pipelines.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_openai_ft/old/plot_hook_frequency.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_openai_ft/old/seed_analysis_summary.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_openai_ft/run_rollouts_for_models_and_compare_v3.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_quick_evaluation.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_react_agent.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/crafter_trace_evaluation.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/example_v3_usage.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/compare_traces.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/crafter_comprehensive_evaluation.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/crafter_env_serialization.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/crafter_evaluation_browser.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/crafter_quick_evaluation.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/crafter_trace_evaluation.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/debug_player_loss.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/diagnose_service.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/diagnose_slowness.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/eval_by_difficulty.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/eval_example.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/explore_saved_states.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/filter_traces_sft.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/filter_traces_sft_OLD.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/generate_ft_data_gemini.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/generate_ft_data_modal.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/generate_ft_metadata.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/kick_off_ft_gemini.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/kick_off_ft_modal.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/prepare_vertex_ft.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/profile_env_slowness.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/replicate_issue.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/run_and_eval.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/run_comparison.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/run_qwen_rollouts.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/trace_eval_OLD.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/agent_demos/old/validate_openai_format.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/config_logging.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/debug_translation.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/engine.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/engine_deterministic_patch.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/engine_helpers/action_map.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/engine_helpers/serialization.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/engine_serialization_patch_v3.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/environment.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/taskset.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/trace_hooks_v3.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_classic/world_config_patch_simple.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_custom/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_custom/agent_demos/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_custom/agent_demos/trace_eval.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_custom/crafter/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_custom/crafter/config.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_custom/crafter/constants.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_custom/crafter/engine.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_custom/crafter/env.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_custom/crafter/objects.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_custom/crafter/recorder.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_custom/crafter/worldgen.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_custom/dataset_builder.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_custom/environment.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_custom/old/analyze_diamond_issue.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_custom/old/analyze_diamond_spawning.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_custom/old/compare_worlds.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_custom/old/dataset_stats.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_custom/old/diamond_spawning_summary.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_custom/old/example_dataset_usage.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/crafter_custom/run_dataset.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/enron/art_helpers/email_search_tools.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/enron/art_helpers/local_email_db.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/enron/art_helpers/types_enron.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/enron/engine.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/enron/environment.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/enron/taskset.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/enron/units/keyword_stats.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/minigrid/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/minigrid/agent_demos/minigrid_evaluation_framework.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/minigrid/agent_demos/minigrid_quick_evaluation.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/minigrid/agent_demos/minigrid_react_agent.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/minigrid/agent_demos/minigrid_trace_evaluation.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/minigrid/engine.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/minigrid/environment.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/minigrid/environment_mapping.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/minigrid/puzzle_loader.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/minigrid/taskset.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/nethack/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/nethack/achievements.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/nethack/agent_demos/nethack_evaluation_framework.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/nethack/agent_demos/nethack_quick_evaluation.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/nethack/agent_demos/nethack_react_agent.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/nethack/engine.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/nethack/environment.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/nethack/helpers/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/nethack/helpers/action_mapping.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/nethack/helpers/nle_wrapper.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/nethack/helpers/observation_utils.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/nethack/helpers/recording_wrapper.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/nethack/helpers/trajectory_recorder.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/nethack/helpers/visualization/replay_viewer.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/nethack/helpers/visualization/visualizer.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/nethack/taskset.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/red/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/red/agent_demos/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/red/config_logging.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/red/engine.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/red/engine_helpers/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/red/engine_helpers/memory_map.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/red/engine_helpers/reward_components.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/red/engine_helpers/reward_library/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/red/engine_helpers/reward_library/adaptive_rewards.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/red/engine_helpers/reward_library/battle_rewards.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/red/engine_helpers/reward_library/composite_rewards.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/red/engine_helpers/reward_library/economy_rewards.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/red/engine_helpers/reward_library/efficiency_rewards.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/red/engine_helpers/reward_library/exploration_rewards.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/red/engine_helpers/reward_library/novelty_rewards.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/red/engine_helpers/reward_library/pallet_town_rewards.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/red/engine_helpers/reward_library/pokemon_rewards.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/red/engine_helpers/reward_library/social_rewards.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/red/engine_helpers/reward_library/story_rewards.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/red/engine_helpers/screen_analysis.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/red/engine_helpers/state_extraction.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/red/environment.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/red/taskset.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/red/units/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/sokoban/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/sokoban/agent_demos/sokoban_full_eval.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/sokoban/engine.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/sokoban/engine_helpers/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/sokoban/engine_helpers/room_utils.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/sokoban/engine_helpers/vendored/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/sokoban/engine_helpers/vendored/envs/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/sokoban/engine_helpers/vendored/envs/boxoban_env.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/sokoban/engine_helpers/vendored/envs/render_utils.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/sokoban/engine_helpers/vendored/envs/room_utils.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/sokoban/engine_helpers/vendored/envs/sokoban_env.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/sokoban/engine_helpers/vendored/envs/sokoban_env_fixed_targets.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/sokoban/engine_helpers/vendored/envs/sokoban_env_pull.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/sokoban/engine_helpers/vendored/envs/sokoban_env_two_player.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/sokoban/engine_helpers/vendored/envs/sokoban_env_variations.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/sokoban/environment.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/sokoban/generate_verified_puzzles.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/sokoban/puzzle_loader.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/sokoban/taskset.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/sokoban/units/astar_common.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/tictactoe/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/tictactoe/engine.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/tictactoe/environment.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/tictactoe/taskset.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/verilog/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/verilog/engine.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/verilog/environment.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/verilog/taskset.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/wordle/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/wordle/engine.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/wordle/environment.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/wordle/helpers/generate_instances_wordfreq.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/wordle/taskset.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/reproducibility/core.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/reproducibility/helpers.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/reproducibility/tree.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/service/app.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/service/core_routes.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/service/external_registry.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/service/registry.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/stateful/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/stateful/core.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/stateful/engine.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/stateful/state.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/tasks/api.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/tasks/core.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/tasks/filters.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/tasks/utils.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/v0_observability/history.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/v0_observability/log.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/evals/base.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/experimental/synth_oss.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/http.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/http_client.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/inference/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/inference/client.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/install_sqld.sh +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/jobs/client.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/client.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/config.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/constants.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/core.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/filtering.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/ft_client.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/gateway.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/health.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/jobs.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/offline/dpo.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/offline/providers.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/offline/sft.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/offline/shared.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/online/grpo.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/online/irft.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/prompts/banking77_injection_eval.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/prompts/gepa.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/prompts/hello_world_in_context_injection_ex.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/prompts/mipro.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/prompts/random_search.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/prompts/run_mipro_banking77.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/prompts/run_random_search_banking77.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/rl_client.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/sse.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/learning/validators.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/caching/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/caching/constants.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/caching/dbs.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/caching/ephemeral.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/caching/handler.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/caching/initialize.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/caching/persistent.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/config.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/constants.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/core/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/core/all.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/core/exceptions.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/core/main.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/core/main_v3.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/core/synth_models.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/core/vendor_clients.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/cost/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/cost/monitor.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/cost/statefulness.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/injection.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/overrides.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/provider_support/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/provider_support/anthropic.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/provider_support/openai.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/provider_support/suppress_logging.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/structured_outputs/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/structured_outputs/handler.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/structured_outputs/inject.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/structured_outputs/rehabilitate.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/tools/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/tools/base.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/unified_interface.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/vendors/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/vendors/base.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/vendors/core/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/vendors/core/anthropic_api.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/vendors/core/gemini_api.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/vendors/core/mistral_api.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/vendors/core/openai_api.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/vendors/core/synth_dev_api.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/vendors/local/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/vendors/local/ollama.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/vendors/openai_standard.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/vendors/openai_standard_responses.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/vendors/retries.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/vendors/supported/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/vendors/supported/custom_endpoint.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/vendors/supported/deepseek.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/vendors/supported/grok.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/vendors/supported/groq.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/vendors/supported/ollama.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/vendors/supported/openrouter.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/vendors/supported/together.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/vendors/synth_client.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/lm/warmup.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/rl/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/rl/contracts.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/rl/env_keys.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/rl/secrets.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/scripts/verify_rewards.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/task/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/task/contracts.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/task/health.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/task/validators.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing_v1/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing_v3/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing_v3/abstractions.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing_v3/config.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing_v3/db_config.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing_v3/decorators.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing_v3/examples/basic_usage.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing_v3/hooks.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing_v3/llm_call_record_helpers.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing_v3/lm_call_record_abstractions.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing_v3/migration_helper.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing_v3/replica_sync.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing_v3/session_tracer.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing_v3/storage/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing_v3/storage/base.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing_v3/storage/config.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing_v3/storage/exceptions.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing_v3/storage/factory.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing_v3/storage/types.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing_v3/storage/utils.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing_v3/turso/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing_v3/turso/daemon.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing_v3/turso/manager.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing_v3/turso/models.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/tracing_v3/utils.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing/abstractions.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing/base_client.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing/client_manager.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing/config.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing/context.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing/decorators.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing/events/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing/events/manage.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing/events/scope.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing/events/store.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing/immediate_client.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing/local.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing/log_client_base.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing/retry_queue.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing/trackers.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing/upload.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing/utils.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing_v1/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing_v1/abstractions.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing_v1/base_client.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing_v1/client_manager.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing_v1/config.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing_v1/context.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing_v1/decorators.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing_v1/events/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing_v1/events/manage.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing_v1/events/scope.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing_v1/events/store.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing_v1/immediate_client.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing_v1/local.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing_v1/log_client_base.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing_v1/retry_queue.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing_v1/trackers.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing_v1/upload.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/v0/tracing_v1/utils.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/zyk/__init__.py +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai.egg-info/SOURCES.txt +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai.egg-info/dependency_links.txt +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai.egg-info/entry_points.txt +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai.egg-info/requires.txt +0 -0
- {synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai.egg-info/top_level.txt +0 -0
|
@@ -25,7 +25,7 @@ tracing = None # type: ignore
|
|
|
25
25
|
EventPartitionElement = RewardSignal = SystemTrace = TrainingQuestion = None # type: ignore
|
|
26
26
|
trace_event_async = trace_event_sync = upload = None # type: ignore
|
|
27
27
|
|
|
28
|
-
__version__ = "0.2.6.
|
|
28
|
+
__version__ = "0.2.6.dev4"
|
|
29
29
|
__all__ = [
|
|
30
30
|
"LM",
|
|
31
31
|
"OpenAI",
|
|
@@ -224,8 +224,59 @@ def _popen_stream_capture(cmd: list[str], cwd: str | None = None, env: dict | No
|
|
|
224
224
|
return int(proc.returncode or 0), "\n".join(buf_lines)
|
|
225
225
|
|
|
226
226
|
|
|
227
|
+
def _mask_secret_args(args: list[str]) -> list[str]:
|
|
228
|
+
masked: list[str] = []
|
|
229
|
+
for a in args:
|
|
230
|
+
if "=" in a and any(a.startswith(prefix) for prefix in ("ENVIRONMENT_API_KEY=", "OPENAI_API_KEY=", "SYNTH_API_KEY=")):
|
|
231
|
+
try:
|
|
232
|
+
key, value = a.split("=", 1)
|
|
233
|
+
tail = value[-5:] if len(value) >= 5 else value
|
|
234
|
+
masked.append(f"{key}=***{tail}")
|
|
235
|
+
except Exception:
|
|
236
|
+
masked.append("<masked>")
|
|
237
|
+
else:
|
|
238
|
+
masked.append(a)
|
|
239
|
+
return masked
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
def _ensure_modal_secret(
|
|
243
|
+
secret_name: str,
|
|
244
|
+
*,
|
|
245
|
+
values: dict[str, str],
|
|
246
|
+
label: str = "deploy",
|
|
247
|
+
replace: bool = False,
|
|
248
|
+
) -> bool:
|
|
249
|
+
prefix = f"[{label}]"
|
|
250
|
+
if not secret_name.strip():
|
|
251
|
+
raise RuntimeError("Secret name is required")
|
|
252
|
+
|
|
253
|
+
if not values:
|
|
254
|
+
raise RuntimeError("No values provided to create Modal secret")
|
|
255
|
+
|
|
256
|
+
create_args = [f"{k}={v}" for k, v in values.items()]
|
|
257
|
+
create_cmd = ["uv", "run", "modal", "secret", "create", secret_name, *create_args]
|
|
258
|
+
|
|
259
|
+
if replace:
|
|
260
|
+
print(f"{prefix} Removing Modal secret '{secret_name}' (if present)…")
|
|
261
|
+
delete_cmd = ["bash", "-lc", f"printf 'y\\n' | uv run modal secret delete {secret_name}"]
|
|
262
|
+
print(f"{prefix} Command:", " ".join(delete_cmd))
|
|
263
|
+
delete_code = _popen_stream(delete_cmd)
|
|
264
|
+
if delete_code != 0:
|
|
265
|
+
print(f"{prefix} Warning: delete command exited with {delete_code}; continuing to create")
|
|
266
|
+
|
|
267
|
+
print(f"\n{prefix} Creating Modal secret '{secret_name}'…")
|
|
268
|
+
print(f"{prefix} Command:", " ".join(_mask_secret_args(create_cmd)))
|
|
269
|
+
code = _popen_stream(create_cmd)
|
|
270
|
+
if code != 0:
|
|
271
|
+
raise RuntimeError("Failed to provision Modal secret (see logs above)")
|
|
272
|
+
|
|
273
|
+
return True
|
|
274
|
+
|
|
275
|
+
|
|
227
276
|
def cmd_deploy(args: argparse.Namespace) -> int:
|
|
228
277
|
env = demo_core.load_env()
|
|
278
|
+
cwd_env_path = os.path.join(os.getcwd(), ".env")
|
|
279
|
+
local_env = demo_core.load_dotenv_file(cwd_env_path)
|
|
229
280
|
url = ""
|
|
230
281
|
app_name = env.task_app_name or ""
|
|
231
282
|
try:
|
|
@@ -279,6 +330,51 @@ def cmd_deploy(args: argparse.Namespace) -> int:
|
|
|
279
330
|
if not proceed:
|
|
280
331
|
print("Aborted by user.")
|
|
281
332
|
return 1
|
|
333
|
+
|
|
334
|
+
secret_name = (env.task_app_secret_name or "").strip() or f"{name_in}-secret"
|
|
335
|
+
env_key = (env.env_api_key or "").strip() or None
|
|
336
|
+
if env_key is None:
|
|
337
|
+
from synth_ai.rl.secrets import mint_environment_api_key
|
|
338
|
+
|
|
339
|
+
env_key = mint_environment_api_key()
|
|
340
|
+
demo_core.persist_env_api_key(env_key)
|
|
341
|
+
demo_core.persist_dotenv_values({"ENVIRONMENT_API_KEY": env_key})
|
|
342
|
+
os.environ["ENVIRONMENT_API_KEY"] = env_key
|
|
343
|
+
env.env_api_key = env_key
|
|
344
|
+
local_env["ENVIRONMENT_API_KEY"] = env_key
|
|
345
|
+
print("[deploy] Minted new ENVIRONMENT_API_KEY")
|
|
346
|
+
|
|
347
|
+
synth_key = (env.synth_api_key or os.environ.get("SYNTH_API_KEY") or local_env.get("SYNTH_API_KEY") or "").strip()
|
|
348
|
+
if not synth_key:
|
|
349
|
+
synth_key = input("Enter SYNTH_API_KEY for Modal secret (required): ").strip()
|
|
350
|
+
if not synth_key:
|
|
351
|
+
print("SYNTH_API_KEY is required to create the Modal secret.")
|
|
352
|
+
return 1
|
|
353
|
+
demo_core.persist_api_key(synth_key)
|
|
354
|
+
demo_core.persist_dotenv_values({"SYNTH_API_KEY": synth_key})
|
|
355
|
+
env.synth_api_key = synth_key
|
|
356
|
+
|
|
357
|
+
openai_key = (os.environ.get("OPENAI_API_KEY") or local_env.get("OPENAI_API_KEY") or "").strip()
|
|
358
|
+
if not openai_key:
|
|
359
|
+
openai_key = input("Enter OPENAI_API_KEY for Modal secret (required): ").strip()
|
|
360
|
+
if not openai_key:
|
|
361
|
+
print("OPENAI_API_KEY is required to create the Modal secret.")
|
|
362
|
+
return 1
|
|
363
|
+
demo_core.persist_dotenv_values({"OPENAI_API_KEY": openai_key})
|
|
364
|
+
local_env["OPENAI_API_KEY"] = openai_key
|
|
365
|
+
|
|
366
|
+
values = {"SYNTH_API_KEY": synth_key, "OPENAI_API_KEY": openai_key}
|
|
367
|
+
if env_key:
|
|
368
|
+
values["ENVIRONMENT_API_KEY"] = env_key
|
|
369
|
+
|
|
370
|
+
try:
|
|
371
|
+
created = _ensure_modal_secret(secret_name, values=values, label="deploy", replace=True)
|
|
372
|
+
except RuntimeError as secret_err:
|
|
373
|
+
print(f"Failed to prepare Modal secret '{secret_name}': {secret_err}")
|
|
374
|
+
return 2
|
|
375
|
+
if created:
|
|
376
|
+
print(f"[deploy] Modal secret '{secret_name}' provisioned.")
|
|
377
|
+
|
|
282
378
|
deploy_cmd = ["uv", "run", "python", "-m", "modal", "deploy", "--name", name_in, app_path]
|
|
283
379
|
print("\nStreaming Modal build/deploy logs (this can take several minutes on first run)…\n")
|
|
284
380
|
code, deploy_logs = _popen_stream_capture(deploy_cmd)
|
|
@@ -346,8 +442,6 @@ def cmd_deploy(args: argparse.Namespace) -> int:
|
|
|
346
442
|
|
|
347
443
|
|
|
348
444
|
def cmd_configure(args: argparse.Namespace) -> int:
|
|
349
|
-
from synth_ai.rl.secrets import mint_environment_api_key
|
|
350
|
-
|
|
351
445
|
env = demo_core.load_env()
|
|
352
446
|
cwd_env_path = os.path.join(os.getcwd(), ".env")
|
|
353
447
|
local_env = demo_core.load_dotenv_file(cwd_env_path)
|
|
@@ -362,13 +456,9 @@ def cmd_configure(args: argparse.Namespace) -> int:
|
|
|
362
456
|
demo_core.persist_dotenv_values({"SYNTH_API_KEY": synth_key})
|
|
363
457
|
|
|
364
458
|
env_key = env.env_api_key.strip()
|
|
365
|
-
minted_env_key = False
|
|
366
459
|
if not env_key:
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
print("Minted new ENVIRONMENT_API_KEY")
|
|
370
|
-
demo_core.persist_env_api_key(env_key)
|
|
371
|
-
demo_core.persist_dotenv_values({"ENVIRONMENT_API_KEY": env_key})
|
|
460
|
+
print("ENVIRONMENT_API_KEY missing; run `uvx synth-ai rl_demo deploy` to mint and store one.")
|
|
461
|
+
return 1
|
|
372
462
|
|
|
373
463
|
task_url = env.task_app_base_url
|
|
374
464
|
if not task_url or not _is_modal_public_url(task_url):
|
|
@@ -418,43 +508,20 @@ def cmd_configure(args: argparse.Namespace) -> int:
|
|
|
418
508
|
})
|
|
419
509
|
|
|
420
510
|
# Ensure Modal secret has the environment API key (and optional extras).
|
|
421
|
-
secret_args = [f"ENVIRONMENT_API_KEY={env_key}"]
|
|
422
511
|
openai_key = (os.environ.get("OPENAI_API_KEY") or local_env.get("OPENAI_API_KEY") or "").strip()
|
|
423
|
-
if openai_key:
|
|
424
|
-
secret_args.append(f"OPENAI_API_KEY={openai_key}")
|
|
425
512
|
synth_for_secret = synth_key
|
|
426
|
-
if synth_for_secret:
|
|
427
|
-
secret_args.append(f"SYNTH_API_KEY={synth_for_secret}")
|
|
428
513
|
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
try:
|
|
435
|
-
k, v = a.split("=", 1)
|
|
436
|
-
suf = v[-5:] if len(v) >= 5 else ""
|
|
437
|
-
masked.append(f"{k}=***{suf}")
|
|
438
|
-
except Exception:
|
|
439
|
-
masked.append("<masked>")
|
|
440
|
-
else:
|
|
441
|
-
masked.append(a)
|
|
442
|
-
return masked
|
|
514
|
+
secret_values: dict[str, str] = {"ENVIRONMENT_API_KEY": env_key}
|
|
515
|
+
if openai_key:
|
|
516
|
+
secret_values["OPENAI_API_KEY"] = openai_key
|
|
517
|
+
if synth_for_secret:
|
|
518
|
+
secret_values["SYNTH_API_KEY"] = synth_for_secret
|
|
443
519
|
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
delete_cmd = ["bash", "-lc", f"printf 'y\\n' | uv run modal secret delete {secret_name}"]
|
|
450
|
-
print("[configure] Command:", " ".join(delete_cmd))
|
|
451
|
-
_popen_stream(delete_cmd)
|
|
452
|
-
print("[configure] Retrying secret create…")
|
|
453
|
-
print("[configure] Command:", " ".join(_mask_args(create_cmd)))
|
|
454
|
-
code = _popen_stream(create_cmd)
|
|
455
|
-
if code != 0:
|
|
456
|
-
print("[configure] Failed to provision Modal secret.")
|
|
457
|
-
return 2
|
|
520
|
+
try:
|
|
521
|
+
_ensure_modal_secret(secret_name, values=secret_values, label="configure", replace=True)
|
|
522
|
+
except RuntimeError as err:
|
|
523
|
+
print(f"[configure] Failed to provision Modal secret: {err}")
|
|
524
|
+
return 2
|
|
458
525
|
|
|
459
526
|
# Verify task app can read the secret by hitting rollout health with X-API-Key.
|
|
460
527
|
rollout_url = task_url.rstrip("/") + "/health/rollout"
|
|
@@ -557,8 +624,6 @@ def cmd_configure(args: argparse.Namespace) -> int:
|
|
|
557
624
|
"TASK_APP_NAME": app_name,
|
|
558
625
|
"TASK_APP_SECRET_NAME": secret_name,
|
|
559
626
|
}, indent=2))
|
|
560
|
-
if minted_env_key:
|
|
561
|
-
print(f"Stored minted ENVIRONMENT_API_KEY in {cwd_env_path}")
|
|
562
627
|
print("Next: uvx synth-ai rl_demo run")
|
|
563
628
|
return 0
|
|
564
629
|
|
|
@@ -938,96 +1003,6 @@ def cmd_run(args: argparse.Namespace) -> int:
|
|
|
938
1003
|
return 0
|
|
939
1004
|
|
|
940
1005
|
|
|
941
|
-
def cmd_eval(args: argparse.Namespace) -> int:
|
|
942
|
-
env = demo_core.load_env()
|
|
943
|
-
# Ensure required env
|
|
944
|
-
if not env.task_app_base_url:
|
|
945
|
-
print("Task app URL missing. Run: uvx synth-ai rl_demo deploy")
|
|
946
|
-
return 1
|
|
947
|
-
# Load config: prefer CWD demo_config.toml; else packaged default
|
|
948
|
-
cfg_path: str | None = None
|
|
949
|
-
if getattr(args, "config", None):
|
|
950
|
-
p = os.path.abspath(args.config)
|
|
951
|
-
if not os.path.isfile(p):
|
|
952
|
-
print(f"Config not found: {p}")
|
|
953
|
-
return 1
|
|
954
|
-
cfg_path = p
|
|
955
|
-
else:
|
|
956
|
-
cwd_prepared = os.path.abspath(os.path.join(os.getcwd(), "demo_config.toml"))
|
|
957
|
-
if os.path.isfile(cwd_prepared):
|
|
958
|
-
cfg_path = cwd_prepared
|
|
959
|
-
else:
|
|
960
|
-
packaged = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "demo_task_apps", "math", "config.toml"))
|
|
961
|
-
cfg_path = packaged if os.path.isfile(packaged) else None
|
|
962
|
-
if not cfg_path:
|
|
963
|
-
print("No config TOML found.")
|
|
964
|
-
return 1
|
|
965
|
-
|
|
966
|
-
import tomllib
|
|
967
|
-
with open(cfg_path, "rb") as fh:
|
|
968
|
-
inline_cfg = tomllib.load(fh)
|
|
969
|
-
|
|
970
|
-
# Model selection prompt
|
|
971
|
-
default_model = (args.model or (inline_cfg.get("model", {}) or {}).get("name") or "Qwen/Qwen3-0.6B")
|
|
972
|
-
entered = input(f"Model to evaluate [{default_model}]: ").strip()
|
|
973
|
-
model = entered or default_model
|
|
974
|
-
confirm = (input(f"Use model '{model}'? [Y/n]: ").strip().lower() or "y").startswith("y")
|
|
975
|
-
if not confirm:
|
|
976
|
-
print("Aborted by user.")
|
|
977
|
-
return 1
|
|
978
|
-
|
|
979
|
-
# Build on-board rollout request to the Task App (no backend RL job)
|
|
980
|
-
# Use Synth backend chat-completions proxy as inference URL (derive from DEV_BACKEND_URL)
|
|
981
|
-
# Ensure /api suffix for backend, then use proxy prefix for chat completions
|
|
982
|
-
backend_api = (env.dev_backend_url or "https://agent-learning.onrender.com/api").rstrip("/")
|
|
983
|
-
if not backend_api.endswith("/api"):
|
|
984
|
-
backend_api = f"{backend_api}/api"
|
|
985
|
-
inference_url = f"{backend_api}/proxy"
|
|
986
|
-
# ops: alternate agent/env for a small number of decisions (from config max_steps_per_episode if present)
|
|
987
|
-
try:
|
|
988
|
-
steps = int((inline_cfg.get("rollout", {}) or {}).get("max_steps_per_episode", 4))
|
|
989
|
-
except Exception:
|
|
990
|
-
steps = 4
|
|
991
|
-
ops: list[str] = []
|
|
992
|
-
for _ in range(max(1, steps // 2)):
|
|
993
|
-
ops.extend(["agent", "env"])
|
|
994
|
-
env_name = (inline_cfg.get("rollout", {}) or {}).get("env_name") or "math"
|
|
995
|
-
policy_name = (inline_cfg.get("rollout", {}) or {}).get("policy_name") or "math-react"
|
|
996
|
-
run_id = f"eval-{int(time.time())}"
|
|
997
|
-
body: Dict[str, Any] = {
|
|
998
|
-
"run_id": run_id,
|
|
999
|
-
"env": {
|
|
1000
|
-
"env_name": env_name,
|
|
1001
|
-
"config": inline_cfg.get("rollout", {}) or {},
|
|
1002
|
-
},
|
|
1003
|
-
"policy": {
|
|
1004
|
-
"policy_name": policy_name,
|
|
1005
|
-
"config": {"model": model, "inference_url": inference_url},
|
|
1006
|
-
},
|
|
1007
|
-
"ops": ops,
|
|
1008
|
-
"on_done": "terminate",
|
|
1009
|
-
}
|
|
1010
|
-
# POST to task app rollout endpoint
|
|
1011
|
-
headers = {"Content-Type": "application/json"}
|
|
1012
|
-
if env.env_api_key:
|
|
1013
|
-
headers["X-API-Key"] = env.env_api_key
|
|
1014
|
-
rc, resp = _http("POST", env.task_app_base_url.rstrip("/") + "/rollout", headers=headers, body=body)
|
|
1015
|
-
if rc not in (200, 201) or not isinstance(resp, dict):
|
|
1016
|
-
print("Eval rollout failed:", rc)
|
|
1017
|
-
try:
|
|
1018
|
-
print(json.dumps(resp, indent=2) if isinstance(resp, dict) else str(resp))
|
|
1019
|
-
except Exception:
|
|
1020
|
-
print(str(resp))
|
|
1021
|
-
print("Request body was:\n" + json.dumps(body, indent=2))
|
|
1022
|
-
return 2
|
|
1023
|
-
metrics = (resp.get("metrics") if isinstance(resp, dict) else None) or {}
|
|
1024
|
-
mean = metrics.get("mean_return")
|
|
1025
|
-
if mean is not None:
|
|
1026
|
-
print(f"eval.reward_mean={mean}")
|
|
1027
|
-
else:
|
|
1028
|
-
print(json.dumps(resp, indent=2))
|
|
1029
|
-
return 0
|
|
1030
|
-
|
|
1031
1006
|
def main(argv: list[str] | None = None) -> int:
|
|
1032
1007
|
p = argparse.ArgumentParser(prog="synth-ai")
|
|
1033
1008
|
sub = p.add_subparsers(dest="cmd")
|
|
@@ -1069,14 +1044,6 @@ def main(argv: list[str] | None = None) -> int:
|
|
|
1069
1044
|
|
|
1070
1045
|
_add_parser(["rl_demo.run", "demo.run"], configure=_run_opts)
|
|
1071
1046
|
|
|
1072
|
-
def _eval_opts(parser):
|
|
1073
|
-
parser.add_argument("--config", type=str, default=None, help="Path to TOML config (optional)")
|
|
1074
|
-
parser.add_argument("--model", type=str, default=None, help="Model to evaluate (default Qwen/Qwen3-0.6B)")
|
|
1075
|
-
parser.add_argument("--timeout", type=int, default=300, help="Seconds to wait for metrics")
|
|
1076
|
-
parser.set_defaults(func=cmd_eval)
|
|
1077
|
-
|
|
1078
|
-
_add_parser(["rl_demo.eval", "demo.eval"], configure=_eval_opts)
|
|
1079
|
-
|
|
1080
1047
|
args = p.parse_args(argv)
|
|
1081
1048
|
if not hasattr(args, "func"):
|
|
1082
1049
|
p.print_help()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/demos/demo_task_apps/math/deploy_modal.py
RENAMED
|
File without changes
|
{synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/demos/demo_task_apps/math/deploy_task_app.sh
RENAMED
|
File without changes
|
{synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/demos/demo_task_apps/math/modal_task_app.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/environment/artifacts/__init__.py
RENAMED
|
File without changes
|
{synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/environment/artifacts/base.py
RENAMED
|
File without changes
|
|
File without changes
|
{synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/environment/db/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/environment/resources/sqlite.py
RENAMED
|
File without changes
|
|
File without changes
|
{synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/environment/rewards/__init__.py
RENAMED
|
File without changes
|
{synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/environment/rewards/core.py
RENAMED
|
File without changes
|
{synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/environment/shared_engine.py
RENAMED
|
File without changes
|
{synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/environment/tools/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/bandit/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/bandit/environment.py
RENAMED
|
File without changes
|
{synth_ai-0.2.6.dev3 → synth_ai-0.2.6.dev5}/synth_ai/environments/examples/bandit/taskset.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|