vidbyte-sdk 0.1.0__py3-none-any.whl
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.
- vidbyte/__init__.py +534 -0
- vidbyte/agents/__init__.py +87 -0
- vidbyte/agents/aggregation.py +358 -0
- vidbyte/agents/algorithms/__init__.py +23 -0
- vidbyte/agents/algorithms/multi_provider_agentic_grader.py +167 -0
- vidbyte/agents/algorithms/reflexion.py +189 -0
- vidbyte/agents/base.py +1325 -0
- vidbyte/agents/client.py +34 -0
- vidbyte/agents/context_algorithms.py +119 -0
- vidbyte/agents/continual_trace.py +91 -0
- vidbyte/agents/contract.py +58 -0
- vidbyte/agents/contracts/__init__.py +64 -0
- vidbyte/agents/contracts/floors.py +52 -0
- vidbyte/agents/fork.py +146 -0
- vidbyte/agents/handoff.py +235 -0
- vidbyte/agents/mixins.py +248 -0
- vidbyte/agents/runtime.py +1773 -0
- vidbyte/agents/runtimes/__init__.py +64 -0
- vidbyte/agents/runtimes/actor/__init__.py +34 -0
- vidbyte/agents/runtimes/actor/actor.py +243 -0
- vidbyte/agents/runtimes/actor/broker.py +345 -0
- vidbyte/agents/runtimes/actor/inbox.py +40 -0
- vidbyte/agents/runtimes/actor/message.py +29 -0
- vidbyte/agents/runtimes/configs.py +73 -0
- vidbyte/agents/runtimes/linear.py +20 -0
- vidbyte/agents/runtimes/search.py +163 -0
- vidbyte/agents/settings/__init__.py +20 -0
- vidbyte/agents/settings/loop.py +190 -0
- vidbyte/agents/settings/tool.py +325 -0
- vidbyte/agents/settings/tool_error.py +130 -0
- vidbyte/agents/types.py +11 -0
- vidbyte/cli/__init__.py +105 -0
- vidbyte/cli/__main__.py +18 -0
- vidbyte/cli/skills.py +165 -0
- vidbyte/client.py +36 -0
- vidbyte/context/__init__.py +109 -0
- vidbyte/context/algorithms/__init__.py +37 -0
- vidbyte/context/algorithms/error_correction.py +314 -0
- vidbyte/context/algorithms/multi_provider_agentic_grader.py +112 -0
- vidbyte/context/algorithms/problem_space_search.py +267 -0
- vidbyte/context/algorithms/reflexion.py +157 -0
- vidbyte/context/algorithms/tool_results.py +82 -0
- vidbyte/context/algorithms/trajectory_checkpoints.py +260 -0
- vidbyte/context/compaction.py +17 -0
- vidbyte/context/handoff/__init__.py +28 -0
- vidbyte/context/handoff/base.py +81 -0
- vidbyte/context/handoff/engineering.py +69 -0
- vidbyte/context/handoff/minimal.py +45 -0
- vidbyte/context/handoff/research.py +63 -0
- vidbyte/context/handoffs.py +12 -0
- vidbyte/context/manager.py +352 -0
- vidbyte/context/presets.py +126 -0
- vidbyte/context/primitives/__init__.py +62 -0
- vidbyte/context/primitives/base.py +99 -0
- vidbyte/context/primitives/checkpoints.py +101 -0
- vidbyte/context/primitives/documents.py +417 -0
- vidbyte/context/primitives/reasoning.py +102 -0
- vidbyte/context/primitives/records.py +122 -0
- vidbyte/context/primitives/tasks.py +281 -0
- vidbyte/context/runtime.py +100 -0
- vidbyte/context/templates/__init__.py +28 -0
- vidbyte/context/templates/recorder.py +92 -0
- vidbyte/context/window.py +38 -0
- vidbyte/evals/__init__.py +95 -0
- vidbyte/evals/base.py +45 -0
- vidbyte/evals/behavior/__init__.py +36 -0
- vidbyte/evals/behavior/behavior.py +86 -0
- vidbyte/evals/behavior/efficiency.py +290 -0
- vidbyte/evals/behavior/handoff.py +62 -0
- vidbyte/evals/behavior/output.py +278 -0
- vidbyte/evals/behavior/probe.py +104 -0
- vidbyte/evals/behavior/stop.py +82 -0
- vidbyte/evals/behavior/tool.py +125 -0
- vidbyte/evals/behavior/tool_arguments.py +70 -0
- vidbyte/evals/client.py +47 -0
- vidbyte/evals/graders/__init__.py +50 -0
- vidbyte/evals/graders/choice_match.py +48 -0
- vidbyte/evals/graders/composite.py +90 -0
- vidbyte/evals/graders/contains.py +41 -0
- vidbyte/evals/graders/contains_all.py +42 -0
- vidbyte/evals/graders/exact_match.py +46 -0
- vidbyte/evals/graders/forbidden_content.py +33 -0
- vidbyte/evals/graders/json_match.py +69 -0
- vidbyte/evals/graders/json_schema.py +98 -0
- vidbyte/evals/graders/length.py +35 -0
- vidbyte/evals/graders/llm_judge.py +112 -0
- vidbyte/evals/graders/numeric_match.py +45 -0
- vidbyte/evals/graders/predicate.py +54 -0
- vidbyte/evals/graders/regex_match.py +36 -0
- vidbyte/evals/graders/rubric.py +136 -0
- vidbyte/evals/registry.py +275 -0
- vidbyte/evals/runner.py +180 -0
- vidbyte/evals/suite.py +107 -0
- vidbyte/evals/templates/__init__.py +47 -0
- vidbyte/evals/templates/base.py +19 -0
- vidbyte/evals/templates/builtins.py +213 -0
- vidbyte/evals/templates/registry.py +68 -0
- vidbyte/evals/types.py +93 -0
- vidbyte/harnesses/__init__.py +7 -0
- vidbyte/harnesses/client.py +11 -0
- vidbyte/lib/__init__.py +46 -0
- vidbyte/lib/agents/__init__.py +7 -0
- vidbyte/lib/agents/modality_detector.py +275 -0
- vidbyte/lib/config/__init__.py +29 -0
- vidbyte/lib/config/base.py +14 -0
- vidbyte/lib/config/constants.py +33 -0
- vidbyte/lib/config/mcp_presets.py +1833 -0
- vidbyte/lib/config/models.py +11 -0
- vidbyte/lib/config/sources.py +30 -0
- vidbyte/lib/constants/__init__.py +25 -0
- vidbyte/lib/constants/runners.py +321 -0
- vidbyte/lib/dataclasses/__init__.py +194 -0
- vidbyte/lib/dataclasses/agents.py +223 -0
- vidbyte/lib/dataclasses/code_search.py +27 -0
- vidbyte/lib/dataclasses/context.py +258 -0
- vidbyte/lib/dataclasses/context_items.py +44 -0
- vidbyte/lib/dataclasses/filesystem.py +62 -0
- vidbyte/lib/dataclasses/mcp.py +27 -0
- vidbyte/lib/dataclasses/middleware.py +196 -0
- vidbyte/lib/dataclasses/model_configs.py +330 -0
- vidbyte/lib/dataclasses/multi_agent.py +86 -0
- vidbyte/lib/dataclasses/runner.py +58 -0
- vidbyte/lib/dataclasses/sandbox.py +47 -0
- vidbyte/lib/dataclasses/security.py +47 -0
- vidbyte/lib/dataclasses/sessions.py +149 -0
- vidbyte/lib/dataclasses/sources.py +149 -0
- vidbyte/lib/dataclasses/strategies.py +18 -0
- vidbyte/lib/dataclasses/tools.py +202 -0
- vidbyte/lib/dataclasses/trace.py +198 -0
- vidbyte/lib/enums/__init__.py +40 -0
- vidbyte/lib/enums/agent_runtime.py +28 -0
- vidbyte/lib/enums/context.py +21 -0
- vidbyte/lib/enums/model_modality.py +336 -0
- vidbyte/lib/enums/model_provider.py +41 -0
- vidbyte/lib/enums/platform.py +17 -0
- vidbyte/lib/enums/prompts.py +84 -0
- vidbyte/lib/enums/skills.py +62 -0
- vidbyte/lib/enums/sources.py +27 -0
- vidbyte/lib/errors/__init__.py +84 -0
- vidbyte/lib/errors/base.py +213 -0
- vidbyte/lib/http/__init__.py +11 -0
- vidbyte/lib/http/parser.py +48 -0
- vidbyte/lib/http/transport.py +174 -0
- vidbyte/lib/models/__init__.py +7 -0
- vidbyte/lib/providers/__init__.py +32 -0
- vidbyte/lib/providers/base.py +79 -0
- vidbyte/lib/providers/mongodb.py +143 -0
- vidbyte/lib/providers/postgres.py +197 -0
- vidbyte/lib/providers/sqlite.py +170 -0
- vidbyte/lib/providers/supabase.py +127 -0
- vidbyte/lib/registries/__init__.py +33 -0
- vidbyte/lib/registries/actors.py +57 -0
- vidbyte/lib/registries/agents.py +72 -0
- vidbyte/lib/registries/models.py +210 -0
- vidbyte/lib/registries/prompts.py +8 -0
- vidbyte/lib/registries/runtimes.py +65 -0
- vidbyte/lib/registries/tools.py +70 -0
- vidbyte/lib/runners/__init__.py +59 -0
- vidbyte/lib/runners/audio.py +44 -0
- vidbyte/lib/runners/base.py +17 -0
- vidbyte/lib/runners/embedding.py +48 -0
- vidbyte/lib/runners/image.py +57 -0
- vidbyte/lib/runners/router.py +50 -0
- vidbyte/lib/runners/streaming_text.py +66 -0
- vidbyte/lib/runners/text.py +71 -0
- vidbyte/lib/runners/types.py +58 -0
- vidbyte/lib/runners/utility.py +142 -0
- vidbyte/lib/runners/video.py +69 -0
- vidbyte/lib/templates/__init__.py +31 -0
- vidbyte/lib/templates/base.py +103 -0
- vidbyte/lib/templates/error_correction.py +44 -0
- vidbyte/lib/templates/problem_space_search.py +44 -0
- vidbyte/lib/templates/reflexion.py +46 -0
- vidbyte/lib/templates/trajectory_checkpoints.py +44 -0
- vidbyte/lib/token_usage.py +41 -0
- vidbyte/lib/tools/__init__.py +21 -0
- vidbyte/lib/tools/filesystem/__init__.py +7 -0
- vidbyte/lib/tools/filesystem/backends/__init__.py +9 -0
- vidbyte/lib/tools/filesystem/backends/base.py +71 -0
- vidbyte/lib/tools/filesystem/backends/local.py +97 -0
- vidbyte/lib/tools/filesystem/permissions.py +45 -0
- vidbyte/lib/tools/formatter.py +521 -0
- vidbyte/lib/tracing/__init__.py +3 -0
- vidbyte/lib/tracing/base.py +69 -0
- vidbyte/mcp_server/__init__.py +21 -0
- vidbyte/mcp_server/__main__.py +28 -0
- vidbyte/mcp_server/handlers.py +263 -0
- vidbyte/mcp_server/schema.py +83 -0
- vidbyte/mcp_server/server/__init__.py +31 -0
- vidbyte/mcp_server/server/core.py +192 -0
- vidbyte/mcp_server/server/handlers/__init__.py +25 -0
- vidbyte/mcp_server/server/handlers/initialize.py +42 -0
- vidbyte/mcp_server/server/handlers/prompts_get.py +46 -0
- vidbyte/mcp_server/server/handlers/prompts_list.py +36 -0
- vidbyte/mcp_server/server/handlers/tools_call.py +50 -0
- vidbyte/mcp_server/server/handlers/tools_list.py +33 -0
- vidbyte/middleware/__init__.py +83 -0
- vidbyte/middleware/base.py +78 -0
- vidbyte/middleware/builtins/__init__.py +71 -0
- vidbyte/middleware/builtins/audit.py +97 -0
- vidbyte/middleware/builtins/canary_tripwire.py +87 -0
- vidbyte/middleware/builtins/circuit_breaker.py +152 -0
- vidbyte/middleware/builtins/confused_deputy.py +117 -0
- vidbyte/middleware/builtins/context_compaction.py +15 -0
- vidbyte/middleware/builtins/cost_budget.py +69 -0
- vidbyte/middleware/builtins/exponential_backoff_retry.py +100 -0
- vidbyte/middleware/builtins/honeypot_tool.py +45 -0
- vidbyte/middleware/builtins/loop_detection.py +207 -0
- vidbyte/middleware/builtins/rate_limit.py +89 -0
- vidbyte/middleware/builtins/retry.py +71 -0
- vidbyte/middleware/builtins/runtime_limits.py +66 -0
- vidbyte/middleware/builtins/token_budget.py +113 -0
- vidbyte/middleware/builtins/tool_error_policy.py +190 -0
- vidbyte/middleware/builtins/tool_policy.py +57 -0
- vidbyte/middleware/compaction/__init__.py +73 -0
- vidbyte/middleware/compaction/base.py +80 -0
- vidbyte/middleware/compaction/context_compaction.py +499 -0
- vidbyte/middleware/compaction/engine.py +344 -0
- vidbyte/middleware/compaction/strategies.py +952 -0
- vidbyte/middleware/compaction/trace_render.py +156 -0
- vidbyte/middleware/continual_trace.py +180 -0
- vidbyte/middleware/pipeline.py +184 -0
- vidbyte/paradigms/__init__.py +33 -0
- vidbyte/paradigms/base.py +45 -0
- vidbyte/paradigms/client.py +28 -0
- vidbyte/paradigms/context_minimal_fanout/README.md +55 -0
- vidbyte/paradigms/context_minimal_fanout/__init__.py +49 -0
- vidbyte/paradigms/context_minimal_fanout/client.py +35 -0
- vidbyte/paradigms/context_minimal_fanout/paradigm.py +298 -0
- vidbyte/paradigms/context_minimal_fanout/prompts/__init__.py +60 -0
- vidbyte/paradigms/context_minimal_fanout/prompts/adversarial_prompt.md +21 -0
- vidbyte/paradigms/context_minimal_fanout/prompts/context_prompt.md +28 -0
- vidbyte/paradigms/context_minimal_fanout/prompts/implementation_prompt.md +22 -0
- vidbyte/paradigms/context_minimal_fanout/prompts/split_prompt.md +22 -0
- vidbyte/paradigms/context_minimal_fanout/skills/decompose-design-fanout/SKILL.md +45 -0
- vidbyte/paradigms/context_minimal_fanout/skills/decompose-design-then-implement/SKILL.md +45 -0
- vidbyte/paradigms/context_minimal_fanout/skills/decompose-fanout/SKILL.md +46 -0
- vidbyte/paradigms/context_minimal_fanout/skills/decompose-then-implement/SKILL.md +43 -0
- vidbyte/paradigms/context_minimal_fanout/skills/references/harness-commands.md +126 -0
- vidbyte/paradigms/context_minimal_fanout/skills/skills.json +49 -0
- vidbyte/paradigms/context_minimal_fanout/types.py +578 -0
- vidbyte/pipelines/__init__.py +19 -0
- vidbyte/pipelines/base.py +58 -0
- vidbyte/pipelines/conditional.py +48 -0
- vidbyte/pipelines/map_reduce.py +54 -0
- vidbyte/pipelines/parallel.py +49 -0
- vidbyte/pipelines/sequential.py +40 -0
- vidbyte/pipelines/types.py +25 -0
- vidbyte/prompts/__init__.py +32 -0
- vidbyte/prompts/agentic_loop.py +23 -0
- vidbyte/prompts/catalog.py +198 -0
- vidbyte/prompts/prompts/__init__.py +19 -0
- vidbyte/prompts/prompts/actor_runtime/actor_runtime.json +67 -0
- vidbyte/prompts/prompts/actor_runtime/coder.md +24 -0
- vidbyte/prompts/prompts/actor_runtime/critic.md +25 -0
- vidbyte/prompts/prompts/actor_runtime/decomposer.md +24 -0
- vidbyte/prompts/prompts/actor_runtime/explorer.md +24 -0
- vidbyte/prompts/prompts/actor_runtime/final_answer.md +24 -0
- vidbyte/prompts/prompts/actor_runtime/formatter.md +24 -0
- vidbyte/prompts/prompts/actor_runtime/generator.md +24 -0
- vidbyte/prompts/prompts/actor_runtime/hypothesis_generator.md +24 -0
- vidbyte/prompts/prompts/actor_runtime/planner.md +24 -0
- vidbyte/prompts/prompts/actor_runtime/reasoner.md +24 -0
- vidbyte/prompts/prompts/actor_runtime/refiner.md +24 -0
- vidbyte/prompts/prompts/actor_runtime/reviewer.md +24 -0
- vidbyte/prompts/prompts/actor_runtime/safety.md +24 -0
- vidbyte/prompts/prompts/actor_runtime/summarization.md +24 -0
- vidbyte/prompts/prompts/actor_runtime/tradeoff.md +24 -0
- vidbyte/prompts/prompts/agentic_engineering/agentic_engineering.json +35 -0
- vidbyte/prompts/prompts/agentic_engineering/error_messages.md +565 -0
- vidbyte/prompts/prompts/agentic_engineering/feature_test_packs.md +1262 -0
- vidbyte/prompts/prompts/agentic_engineering/file_headers.md +293 -0
- vidbyte/prompts/prompts/agentic_engineering/folder_readme.md +104 -0
- vidbyte/prompts/prompts/agentic_engineering/function_design.md +182 -0
- vidbyte/prompts/prompts/agentic_engineering/intent_based_commenting.md +420 -0
- vidbyte/prompts/prompts/agentic_engineering/system_prompt.md +65 -0
- vidbyte/prompts/prompts/agentic_loop.json +8 -0
- vidbyte/prompts/prompts/context_engineering.json +8 -0
- vidbyte/prompts/prompts/continual_trace/continual_trace.json +11 -0
- vidbyte/prompts/prompts/continual_trace/system_prompt.md +37 -0
- vidbyte/prompts/prompts/error_correction.json +11 -0
- vidbyte/prompts/prompts/error_correction_auditor.md +21 -0
- vidbyte/prompts/prompts/evals.json +9 -0
- vidbyte/prompts/prompts/expert_prompting.json +8 -0
- vidbyte/prompts/prompts/goals/goal_prompt.md +27 -0
- vidbyte/prompts/prompts/goals/goals.json +11 -0
- vidbyte/prompts/prompts/handoff/handoff.json +11 -0
- vidbyte/prompts/prompts/handoff/handoff.md +17 -0
- vidbyte/prompts/prompts/mimic_behavior/mimic_behavior.json +11 -0
- vidbyte/prompts/prompts/mimic_behavior/mimic_prompt.md +36 -0
- vidbyte/prompts/prompts/multi_provider_agentic_grader/agent_system_prompt.md +3 -0
- vidbyte/prompts/prompts/multi_provider_agentic_grader/grader_prompt.md +8 -0
- vidbyte/prompts/prompts/multi_provider_agentic_grader/grader_system_prompt.md +1 -0
- vidbyte/prompts/prompts/multi_provider_agentic_grader/multi_provider_agentic_grader.json +19 -0
- vidbyte/prompts/prompts/multi_provider_aggregator/multi_provider_aggregator.json +15 -0
- vidbyte/prompts/prompts/multi_provider_aggregator/synthesis_prompt.md +13 -0
- vidbyte/prompts/prompts/multi_provider_aggregator/synthesis_system_prompt.md +13 -0
- vidbyte/prompts/prompts/problem_space_search.json +11 -0
- vidbyte/prompts/prompts/problem_space_search_explorer.md +21 -0
- vidbyte/prompts/prompts/prompt_engineering.json +8 -0
- vidbyte/prompts/prompts/reflexion/agent_system_prompt.md +11 -0
- vidbyte/prompts/prompts/reflexion/reflect_prompt.md +10 -0
- vidbyte/prompts/prompts/reflexion/reflect_system_prompt.md +1 -0
- vidbyte/prompts/prompts/reflexion/reflexion.json +19 -0
- vidbyte/prompts/prompts/templates/intent_based.md +25 -0
- vidbyte/prompts/prompts/templates/master.md +471 -0
- vidbyte/prompts/prompts/templates/persona.md +27 -0
- vidbyte/prompts/prompts/templates/specification.md +33 -0
- vidbyte/prompts/prompts/templates/templates.json +23 -0
- vidbyte/prompts/prompts/trajectory_checkpoints.json +11 -0
- vidbyte/prompts/prompts/trajectory_checkpoints_agentic_summarizer.md +54 -0
- vidbyte/providers/__init__.py +157 -0
- vidbyte/providers/anthropic.py +131 -0
- vidbyte/providers/base.py +22 -0
- vidbyte/providers/client.py +5 -0
- vidbyte/providers/compatible.py +195 -0
- vidbyte/providers/elevenlabs.py +67 -0
- vidbyte/providers/gemini.py +167 -0
- vidbyte/providers/openai.py +304 -0
- vidbyte/providers/openrouter.py +45 -0
- vidbyte/providers/output_schema.py +87 -0
- vidbyte/providers/playai.py +73 -0
- vidbyte/providers/tracing/__init__.py +5 -0
- vidbyte/providers/tracing/langfuse.py +123 -0
- vidbyte/providers/tracing/langsmith.py +173 -0
- vidbyte/providers/tracing/phoenix.py +123 -0
- vidbyte/providers/xai.py +58 -0
- vidbyte/sessions/__init__.py +78 -0
- vidbyte/sessions/client.py +65 -0
- vidbyte/sessions/contracts.py +27 -0
- vidbyte/sessions/errors.py +57 -0
- vidbyte/sessions/portable.py +173 -0
- vidbyte/sessions/scope.py +57 -0
- vidbyte/sessions/serialization.py +224 -0
- vidbyte/sessions/session.py +416 -0
- vidbyte/sessions/store.py +169 -0
- vidbyte/sessions/stores/__init__.py +17 -0
- vidbyte/sessions/stores/file.py +109 -0
- vidbyte/sessions/stores/memory.py +56 -0
- vidbyte/sessions/trace_capture.py +99 -0
- vidbyte/sessions/usage.py +128 -0
- vidbyte/shared/__init__.py +3 -0
- vidbyte/skills/__init__.py +24 -0
- vidbyte/skills/catalog.py +293 -0
- vidbyte/sources/__init__.py +69 -0
- vidbyte/sources/_fetch.py +33 -0
- vidbyte/sources/_markdown.py +38 -0
- vidbyte/sources/base.py +159 -0
- vidbyte/sources/cache/__init__.py +27 -0
- vidbyte/sources/cache/base.py +29 -0
- vidbyte/sources/cache/file.py +44 -0
- vidbyte/sources/cache/memory.py +34 -0
- vidbyte/sources/cache/null.py +31 -0
- vidbyte/sources/document.py +22 -0
- vidbyte/sources/fetches/__init__.py +33 -0
- vidbyte/sources/fetches/base.py +30 -0
- vidbyte/sources/fetches/chained.py +45 -0
- vidbyte/sources/fetches/file.py +54 -0
- vidbyte/sources/fetches/hash.py +25 -0
- vidbyte/sources/fetches/http.py +61 -0
- vidbyte/sources/fetches/memory.py +40 -0
- vidbyte/sources/llms_txt/__init__.py +34 -0
- vidbyte/sources/llms_txt/loader.py +20 -0
- vidbyte/sources/llms_txt/parser.py +129 -0
- vidbyte/sources/llms_txt/types.py +22 -0
- vidbyte/sources/loaders/__init__.py +25 -0
- vidbyte/sources/loaders/document.py +60 -0
- vidbyte/sources/loaders/llms_txt.py +109 -0
- vidbyte/sources/regex/__init__.py +22 -0
- vidbyte/sources/regex/regex.py +84 -0
- vidbyte/sources/security.py +52 -0
- vidbyte/tools/__init__.py +77 -0
- vidbyte/tools/_internal.py +45 -0
- vidbyte/tools/adapters.py +23 -0
- vidbyte/tools/agent_tool.py +90 -0
- vidbyte/tools/base.py +59 -0
- vidbyte/tools/builtins/__init__.py +179 -0
- vidbyte/tools/builtins/calculator.py +46 -0
- vidbyte/tools/builtins/code_execution.py +90 -0
- vidbyte/tools/builtins/code_search/__init__.py +27 -0
- vidbyte/tools/builtins/code_search/base.py +95 -0
- vidbyte/tools/builtins/code_search/glob.py +75 -0
- vidbyte/tools/builtins/code_search/grep.py +103 -0
- vidbyte/tools/builtins/code_search/semantic.py +184 -0
- vidbyte/tools/builtins/context/__init__.py +25 -0
- vidbyte/tools/builtins/context/compaction.py +117 -0
- vidbyte/tools/builtins/context/types.py +22 -0
- vidbyte/tools/builtins/context_primitives/__init__.py +46 -0
- vidbyte/tools/builtins/context_primitives/create.py +94 -0
- vidbyte/tools/builtins/context_primitives/edit.py +168 -0
- vidbyte/tools/builtins/context_primitives/factory.py +99 -0
- vidbyte/tools/builtins/context_primitives/list_tool.py +58 -0
- vidbyte/tools/builtins/context_primitives/move.py +95 -0
- vidbyte/tools/builtins/context_primitives/recite.py +86 -0
- vidbyte/tools/builtins/context_primitives/registry.py +224 -0
- vidbyte/tools/builtins/context_primitives/remove.py +72 -0
- vidbyte/tools/builtins/context_primitives/stats.py +66 -0
- vidbyte/tools/builtins/context_primitives/upsert.py +153 -0
- vidbyte/tools/builtins/document_retrieval.py +89 -0
- vidbyte/tools/builtins/editing/__init__.py +19 -0
- vidbyte/tools/builtins/editing/patch.py +99 -0
- vidbyte/tools/builtins/fork/__init__.py +17 -0
- vidbyte/tools/builtins/fork/fork.py +533 -0
- vidbyte/tools/builtins/handoff/__init__.py +19 -0
- vidbyte/tools/builtins/handoff/create.py +185 -0
- vidbyte/tools/builtins/mcp/__init__.py +31 -0
- vidbyte/tools/builtins/mcp/attach_tool.py +191 -0
- vidbyte/tools/builtins/mcp/search.py +200 -0
- vidbyte/tools/builtins/memory/__init__.py +72 -0
- vidbyte/tools/builtins/memory/base.py +88 -0
- vidbyte/tools/builtins/memory/cognee.py +223 -0
- vidbyte/tools/builtins/memory/letta.py +234 -0
- vidbyte/tools/builtins/memory/mem0.py +250 -0
- vidbyte/tools/builtins/memory/supermemory.py +191 -0
- vidbyte/tools/builtins/memory/zep.py +240 -0
- vidbyte/tools/builtins/output_schema/__init__.py +28 -0
- vidbyte/tools/builtins/output_schema/append.py +67 -0
- vidbyte/tools/builtins/output_schema/builder.py +138 -0
- vidbyte/tools/builtins/output_schema/declare.py +85 -0
- vidbyte/tools/builtins/output_schema/extend.py +70 -0
- vidbyte/tools/builtins/providers/__init__.py +35 -0
- vidbyte/tools/builtins/providers/_base.py +40 -0
- vidbyte/tools/builtins/providers/_descriptions.py +66 -0
- vidbyte/tools/builtins/providers/mongodb.py +195 -0
- vidbyte/tools/builtins/providers/rows.py +178 -0
- vidbyte/tools/builtins/reflexion.py +120 -0
- vidbyte/tools/builtins/run_prompts_sequentially.py +100 -0
- vidbyte/tools/builtins/sessions/__init__.py +39 -0
- vidbyte/tools/builtins/sessions/_base.py +66 -0
- vidbyte/tools/builtins/sessions/batch_fork.py +91 -0
- vidbyte/tools/builtins/sessions/checkpoint.py +91 -0
- vidbyte/tools/builtins/sessions/descriptions.py +126 -0
- vidbyte/tools/builtins/sessions/fork.py +86 -0
- vidbyte/tools/builtins/sessions/resume_append.py +77 -0
- vidbyte/tools/builtins/sessions/resume_output.py +67 -0
- vidbyte/tools/builtins/sessions/resume_replace.py +93 -0
- vidbyte/tools/builtins/sessions/rewind.py +62 -0
- vidbyte/tools/builtins/sessions/session.py +100 -0
- vidbyte/tools/builtins/trajectory_checkpoint.py +147 -0
- vidbyte/tools/catalog.py +155 -0
- vidbyte/tools/client.py +53 -0
- vidbyte/tools/continual_trace.py +179 -0
- vidbyte/tools/decorators.py +44 -0
- vidbyte/tools/dynamic_actor.py +72 -0
- vidbyte/tools/executor.py +89 -0
- vidbyte/tools/filesystem/__init__.py +49 -0
- vidbyte/tools/filesystem/_base_tool.py +35 -0
- vidbyte/tools/filesystem/append_text.py +39 -0
- vidbyte/tools/filesystem/base.py +9 -0
- vidbyte/tools/filesystem/checksum.py +38 -0
- vidbyte/tools/filesystem/copy.py +43 -0
- vidbyte/tools/filesystem/delete.py +40 -0
- vidbyte/tools/filesystem/diff.py +50 -0
- vidbyte/tools/filesystem/exists.py +33 -0
- vidbyte/tools/filesystem/find.py +38 -0
- vidbyte/tools/filesystem/list_dir.py +31 -0
- vidbyte/tools/filesystem/make_dir.py +34 -0
- vidbyte/tools/filesystem/move.py +47 -0
- vidbyte/tools/filesystem/read_binary.py +39 -0
- vidbyte/tools/filesystem/read_lines.py +47 -0
- vidbyte/tools/filesystem/read_text.py +31 -0
- vidbyte/tools/filesystem/replace_text.py +52 -0
- vidbyte/tools/filesystem/stat.py +38 -0
- vidbyte/tools/filesystem/touch.py +39 -0
- vidbyte/tools/filesystem/tree.py +50 -0
- vidbyte/tools/filesystem/write_text.py +34 -0
- vidbyte/tools/filesystem/zip_tools.py +74 -0
- vidbyte/tools/function_tool.py +146 -0
- vidbyte/tools/mcp/__init__.py +117 -0
- vidbyte/tools/mcp/attach.py +90 -0
- vidbyte/tools/mcp/bridge.py +104 -0
- vidbyte/tools/mcp/client.py +108 -0
- vidbyte/tools/mcp/presets.py +497 -0
- vidbyte/tools/mcp/transport.py +112 -0
- vidbyte/tools/mcp/types.py +71 -0
- vidbyte/tools/mixins.py +49 -0
- vidbyte/tools/security/__init__.py +28 -0
- vidbyte/tools/security/permissions.py +21 -0
- vidbyte/tools/security/sandbox.py +22 -0
- vidbyte/tools/toolsets/__init__.py +20 -0
- vidbyte/tools/toolsets/paradigm_minimal.py +67 -0
- vidbyte/tools/types.py +37 -0
- vidbyte/trace/__init__.py +53 -0
- vidbyte/trace/base.py +157 -0
- vidbyte/trace/components/__init__.py +24 -0
- vidbyte/trace/components/agents.py +48 -0
- vidbyte/trace/components/algorithms.py +50 -0
- vidbyte/trace/components/context.py +34 -0
- vidbyte/trace/components/middleware.py +24 -0
- vidbyte/trace/components/parsers.py +24 -0
- vidbyte/trace/components/runtimes.py +67 -0
- vidbyte/trace/components/tools.py +24 -0
- vidbyte/trace/continual/__init__.py +30 -0
- vidbyte/trace/continual/agent.py +6 -0
- vidbyte/trace/continual/base.py +58 -0
- vidbyte/trace/continual/middleware.py +8 -0
- vidbyte/trace/continual/prebuilt.py +74 -0
- vidbyte/trace/continual/tools.py +7 -0
- vidbyte/trace/controller.py +169 -0
- vidbyte/trace/debug.py +92 -0
- vidbyte/trace/profiles.py +150 -0
- vidbyte/trace/providers/__init__.py +14 -0
- vidbyte/trace/providers/base.py +29 -0
- vidbyte/trace/providers/generic.py +19 -0
- vidbyte/trace/providers/langsmith.py +26 -0
- vidbyte/trace/registry.py +35 -0
- vidbyte/trace/schema.py +86 -0
- vidbyte/trace/session.py +264 -0
- vidbyte_sdk-0.1.0.dist-info/METADATA +1284 -0
- vidbyte_sdk-0.1.0.dist-info/RECORD +514 -0
- vidbyte_sdk-0.1.0.dist-info/WHEEL +5 -0
- vidbyte_sdk-0.1.0.dist-info/entry_points.txt +3 -0
- vidbyte_sdk-0.1.0.dist-info/licenses/LICENSE +21 -0
- vidbyte_sdk-0.1.0.dist-info/top_level.txt +1 -0
vidbyte/__init__.py
ADDED
|
@@ -0,0 +1,534 @@
|
|
|
1
|
+
"""Context Protocol Header
|
|
2
|
+
|
|
3
|
+
Description:
|
|
4
|
+
Exports the root Vidbyte SDK client and top-level public tool, agent, context,
|
|
5
|
+
paradigm, and pipeline contracts.
|
|
6
|
+
Purpose:
|
|
7
|
+
Keeps common SDK imports concise while leaving specialized built-in tools in
|
|
8
|
+
their category packages.
|
|
9
|
+
Architecture:
|
|
10
|
+
- VidbyteSDK: Root namespace client.
|
|
11
|
+
- Agent exports: BaseAgent, AgentCard, AgentMessage, AgentRegistry, AgentRunnerConfig, AgentSpec.
|
|
12
|
+
- Tool exports: BaseTool, ToolCall, ToolExecutor, ToolParameter, ToolPermission, ToolRegistry, ToolResult, ToolSpec, ToolStatus, ToolsFormatter.
|
|
13
|
+
- MCP exports: McpServerConfig, McpServerHandle, McpToolPermission.
|
|
14
|
+
- Context exports: BaseAgentContext, BaseContext, ContextBudget, ContextPermissions.
|
|
15
|
+
- Preset exports: BudgetPreset, PermissionPreset.
|
|
16
|
+
- Pipeline exports: BasePipeline, ConditionalPipeline, ParallelPipeline, PipelineNode, SequentialPipeline.
|
|
17
|
+
- Error exports: McpError, McpConnectionError, McpInitializeError, McpToolDiscoveryError, McpToolExecutionError, McpAttachmentError, PipelineExecutionError.
|
|
18
|
+
Key Functions / Exports:
|
|
19
|
+
- VidbyteSDK: Main SDK entry point.
|
|
20
|
+
- BaseAgent: Base class for building agents.
|
|
21
|
+
- BaseTool: Base class for building tools.
|
|
22
|
+
- BaseContext: Base class for managing conversation contexts.
|
|
23
|
+
Relation to codebase as a whole:
|
|
24
|
+
Acts as the primary public API entry point of the entire SDK, unifying all sub-packages (agents, context, tools, mcp, pipelines, middleware) into a single export surface for consumers.
|
|
25
|
+
Similar files:
|
|
26
|
+
- vidbyte/context/__init__.py: Exposes public context management namespace.
|
|
27
|
+
- vidbyte/agents/__init__.py: Exposes agent contracts.
|
|
28
|
+
- vidbyte/tools/__init__.py: Exposes tool abstractions.
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
from __future__ import annotations
|
|
32
|
+
|
|
33
|
+
__version__ = "0.1.0"
|
|
34
|
+
|
|
35
|
+
from vidbyte.agents import (
|
|
36
|
+
Agent,
|
|
37
|
+
AggregateAgent,
|
|
38
|
+
AggregateConfig,
|
|
39
|
+
AggregateResult,
|
|
40
|
+
AgentClient,
|
|
41
|
+
AgentCard,
|
|
42
|
+
AgentForkSettings,
|
|
43
|
+
AgentInput,
|
|
44
|
+
AgentMessage,
|
|
45
|
+
AgentRegistry,
|
|
46
|
+
AgentRunnerConfig,
|
|
47
|
+
AgentRuntimeConfig,
|
|
48
|
+
AgentRuntimeStats,
|
|
49
|
+
AgentSpec,
|
|
50
|
+
AgentStopReason,
|
|
51
|
+
BaseAgent,
|
|
52
|
+
HandoffAgent,
|
|
53
|
+
MultiProviderAggregator,
|
|
54
|
+
ProposerSpec,
|
|
55
|
+
ToolSettings,
|
|
56
|
+
)
|
|
57
|
+
from vidbyte.client import VidbyteSDK
|
|
58
|
+
from vidbyte.paradigms import (
|
|
59
|
+
AgentRoleSettings,
|
|
60
|
+
ContextFile,
|
|
61
|
+
ContextMinimalFanoutClient,
|
|
62
|
+
ContextMinimalFanoutParadigm,
|
|
63
|
+
ContextMinimalFanoutResult,
|
|
64
|
+
ContextMinimalFanoutSettings,
|
|
65
|
+
EnvironmentContext,
|
|
66
|
+
EnvironmentSummary,
|
|
67
|
+
ImplementationOutput,
|
|
68
|
+
ParadigmClient,
|
|
69
|
+
ParadigmHarness,
|
|
70
|
+
PromptSplitPlan,
|
|
71
|
+
SplitPrompt,
|
|
72
|
+
)
|
|
73
|
+
from vidbyte.tools.builtins.output_schema import (
|
|
74
|
+
AppendOutputTool,
|
|
75
|
+
DeclareOutputSchemaTool,
|
|
76
|
+
ExtendOutputSchemaTool,
|
|
77
|
+
OutputSchemaBuilder,
|
|
78
|
+
OutputSchemaField,
|
|
79
|
+
)
|
|
80
|
+
from vidbyte.tools.toolsets import ParadigmMinimalToolset
|
|
81
|
+
from vidbyte.evals import (
|
|
82
|
+
AllOfGrader,
|
|
83
|
+
AnyOfGrader,
|
|
84
|
+
BaseGrader,
|
|
85
|
+
Behavior,
|
|
86
|
+
ChoiceMatchGrader,
|
|
87
|
+
ClassificationTemplate,
|
|
88
|
+
ComparisonReport,
|
|
89
|
+
ConciseGroundedAnswerTemplate,
|
|
90
|
+
ContainsAllGrader,
|
|
91
|
+
ContainsGrader,
|
|
92
|
+
EvalCase,
|
|
93
|
+
EvalClient,
|
|
94
|
+
EvalRegistry,
|
|
95
|
+
EvalResult,
|
|
96
|
+
EvalRunner,
|
|
97
|
+
EvalSuite,
|
|
98
|
+
EvalSuiteResult,
|
|
99
|
+
EvalTemplate,
|
|
100
|
+
EvalTemplateRegistry,
|
|
101
|
+
ExactMatchGrader,
|
|
102
|
+
ForbiddenContentGrader,
|
|
103
|
+
GraderResult,
|
|
104
|
+
JSONExactMatchGrader,
|
|
105
|
+
JSONSchemaGrader,
|
|
106
|
+
JSONSubsetGrader,
|
|
107
|
+
LengthGrader,
|
|
108
|
+
LLMJudgeGrader,
|
|
109
|
+
MultipleChoiceTemplate,
|
|
110
|
+
NumericAnswerTemplate,
|
|
111
|
+
NumericMatchGrader,
|
|
112
|
+
PredicateGrader,
|
|
113
|
+
RegexMatchGrader,
|
|
114
|
+
RunProbe,
|
|
115
|
+
RubricGrader,
|
|
116
|
+
SafeCustomerSupportTemplate,
|
|
117
|
+
ShortAnswerFactTemplate,
|
|
118
|
+
StructuredJsonTemplate,
|
|
119
|
+
WeightedGrader,
|
|
120
|
+
templates,
|
|
121
|
+
)
|
|
122
|
+
from vidbyte.context import (
|
|
123
|
+
ArtifactContextItem,
|
|
124
|
+
BaseAgentContext,
|
|
125
|
+
BaseContext,
|
|
126
|
+
ContextBudget,
|
|
127
|
+
ContextItem,
|
|
128
|
+
ContextManager,
|
|
129
|
+
ContextPermissions,
|
|
130
|
+
ContextWindow,
|
|
131
|
+
ContextWindowAlgorithm,
|
|
132
|
+
ContextWindowPlacement,
|
|
133
|
+
ContextWindowRunContext,
|
|
134
|
+
DocumentContextItem,
|
|
135
|
+
EngineeringHandoff,
|
|
136
|
+
EnvironmentContextItem,
|
|
137
|
+
ErrorCorrectionAlgorithm,
|
|
138
|
+
ErrorCorrectionContextItem,
|
|
139
|
+
FileContextItem,
|
|
140
|
+
GitDiffContextItem,
|
|
141
|
+
Handoff,
|
|
142
|
+
MemoryContextItem,
|
|
143
|
+
MinimalHandoff,
|
|
144
|
+
ResearchHandoff,
|
|
145
|
+
CompactionMode,
|
|
146
|
+
CompactionStats,
|
|
147
|
+
ContextCompactionEngine,
|
|
148
|
+
MultiProviderAgenticGraderAlgorithm,
|
|
149
|
+
InnerContextWindowAlgorithm,
|
|
150
|
+
PlanContextItem,
|
|
151
|
+
ProblemSpaceSearchAlgorithm,
|
|
152
|
+
ProblemSpaceSearchContextItem,
|
|
153
|
+
ProgressContextItem,
|
|
154
|
+
ReflexionAlgorithm,
|
|
155
|
+
ResponseContextItem,
|
|
156
|
+
TaskContextItem,
|
|
157
|
+
TextContextItem,
|
|
158
|
+
ToolCallContextItem,
|
|
159
|
+
ToolResultAdmission,
|
|
160
|
+
TrajectoryCheckpointAlgorithm,
|
|
161
|
+
TrajectoryCheckpointContextItem,
|
|
162
|
+
)
|
|
163
|
+
from vidbyte.tools.builtins.context_primitives import (
|
|
164
|
+
CREATE_TOOL_REGISTRY,
|
|
165
|
+
CreateContextPrimitiveTool,
|
|
166
|
+
ContextEditTool,
|
|
167
|
+
ContextListTool,
|
|
168
|
+
ContextMoveTool,
|
|
169
|
+
ContextReciteTool,
|
|
170
|
+
ContextRemoveTool,
|
|
171
|
+
ContextStatsTool,
|
|
172
|
+
ContextUpsertTool,
|
|
173
|
+
ContextWindowFactory,
|
|
174
|
+
PrimitiveToolDefinition,
|
|
175
|
+
context_window_tools,
|
|
176
|
+
)
|
|
177
|
+
from vidbyte.tools.builtins.handoff import CreateHandoffTool
|
|
178
|
+
from vidbyte.tools.builtins.run_prompts_sequentially import RunPromptsSequentiallyTool
|
|
179
|
+
from vidbyte.tools.builtins.sessions import (
|
|
180
|
+
BatchForkTool,
|
|
181
|
+
CheckpointTool,
|
|
182
|
+
ForkTool,
|
|
183
|
+
ResumeAppendTool,
|
|
184
|
+
ResumeOutputTool,
|
|
185
|
+
ResumeReplaceTool,
|
|
186
|
+
RewindTool,
|
|
187
|
+
SessionTool,
|
|
188
|
+
)
|
|
189
|
+
from vidbyte.lib.enums import BudgetPreset, PermissionPreset, Prompt
|
|
190
|
+
from vidbyte.lib.errors import (
|
|
191
|
+
McpAttachmentError,
|
|
192
|
+
McpConnectionError,
|
|
193
|
+
McpError,
|
|
194
|
+
McpInitializeError,
|
|
195
|
+
McpToolDiscoveryError,
|
|
196
|
+
McpToolExecutionError,
|
|
197
|
+
PipelineExecutionError,
|
|
198
|
+
TracerConfigurationError,
|
|
199
|
+
)
|
|
200
|
+
from vidbyte.lib.tracing import NullTracer, TracerBase
|
|
201
|
+
from vidbyte.trace import (
|
|
202
|
+
ActionTrace,
|
|
203
|
+
ContinualTraceAgent,
|
|
204
|
+
ContinualTraceMiddleware,
|
|
205
|
+
ContinualTracer,
|
|
206
|
+
DebugTracer,
|
|
207
|
+
ParentPolicy,
|
|
208
|
+
SemanticSpanContext,
|
|
209
|
+
SessionTraceController,
|
|
210
|
+
SessionTracer,
|
|
211
|
+
SpanKind,
|
|
212
|
+
SpanSpec,
|
|
213
|
+
Trace,
|
|
214
|
+
TraceComponentSettings,
|
|
215
|
+
TraceController,
|
|
216
|
+
TraceDetail,
|
|
217
|
+
TraceOption,
|
|
218
|
+
TraceProfile,
|
|
219
|
+
TraceSchema,
|
|
220
|
+
)
|
|
221
|
+
from vidbyte.middleware import (
|
|
222
|
+
AgentMiddleware,
|
|
223
|
+
AuditLogMiddleware,
|
|
224
|
+
CanaryTripwireMiddleware,
|
|
225
|
+
ConfusedDeputyGuardMiddleware,
|
|
226
|
+
HoneypotToolMiddleware,
|
|
227
|
+
MiddlewareAction,
|
|
228
|
+
MiddlewareContext,
|
|
229
|
+
MiddlewareDecision,
|
|
230
|
+
MiddlewareEvent,
|
|
231
|
+
MiddlewareHook,
|
|
232
|
+
MiddlewarePipeline,
|
|
233
|
+
MiddlewareTransform,
|
|
234
|
+
MessageHistoryCompactionMiddleware,
|
|
235
|
+
ModelRetryMiddleware,
|
|
236
|
+
RuntimeLimitMiddleware,
|
|
237
|
+
SummaryCompactionMiddleware,
|
|
238
|
+
TokenRateLimitMiddleware,
|
|
239
|
+
ToolResultCompactionMiddleware,
|
|
240
|
+
ToolPolicyMiddleware,
|
|
241
|
+
)
|
|
242
|
+
from vidbyte.pipelines import (
|
|
243
|
+
BasePipeline,
|
|
244
|
+
ConditionalPipeline,
|
|
245
|
+
MapReducePipeline,
|
|
246
|
+
ParallelPipeline,
|
|
247
|
+
PipelineNode,
|
|
248
|
+
SequentialPipeline,
|
|
249
|
+
)
|
|
250
|
+
from vidbyte.prompts import Prompts
|
|
251
|
+
from vidbyte.sessions import (
|
|
252
|
+
Checkpoint,
|
|
253
|
+
CheckpointPolicy,
|
|
254
|
+
FileSessionStore,
|
|
255
|
+
ForkOutcome,
|
|
256
|
+
InMemorySessionStore,
|
|
257
|
+
RunState,
|
|
258
|
+
Session,
|
|
259
|
+
SessionClient,
|
|
260
|
+
SessionError,
|
|
261
|
+
SessionMeta,
|
|
262
|
+
SessionNotFoundError,
|
|
263
|
+
SessionScope,
|
|
264
|
+
SessionSerializationError,
|
|
265
|
+
SessionStatus,
|
|
266
|
+
SessionStore,
|
|
267
|
+
SessionStoreError,
|
|
268
|
+
SessionVersionError,
|
|
269
|
+
TraceCapture,
|
|
270
|
+
)
|
|
271
|
+
from vidbyte.tools import (
|
|
272
|
+
BaseTool,
|
|
273
|
+
FunctionTool,
|
|
274
|
+
ToolCall,
|
|
275
|
+
ToolCallContext,
|
|
276
|
+
ToolCallState,
|
|
277
|
+
ToolExecutor,
|
|
278
|
+
ToolMixin,
|
|
279
|
+
ToolParameter,
|
|
280
|
+
ToolPermission,
|
|
281
|
+
ToolRegistry,
|
|
282
|
+
ToolResult,
|
|
283
|
+
ToolSpec,
|
|
284
|
+
ToolStatus,
|
|
285
|
+
Tools,
|
|
286
|
+
ToolsFormatter,
|
|
287
|
+
tool,
|
|
288
|
+
vidbyte_tool,
|
|
289
|
+
)
|
|
290
|
+
from vidbyte.providers.output_schema import OutputSchemaFormatter
|
|
291
|
+
from vidbyte.mcp_server import McpStudioServer
|
|
292
|
+
from vidbyte.tools.mcp import (
|
|
293
|
+
McpServerConfig,
|
|
294
|
+
McpServerHandle,
|
|
295
|
+
McpToolPermission,
|
|
296
|
+
)
|
|
297
|
+
|
|
298
|
+
__all__ = [
|
|
299
|
+
"Agent",
|
|
300
|
+
"ActionTrace",
|
|
301
|
+
"ContinualTraceAgent",
|
|
302
|
+
"ContinualTraceMiddleware",
|
|
303
|
+
"ContinualTracer",
|
|
304
|
+
"TraceOption",
|
|
305
|
+
"TraceSchema",
|
|
306
|
+
"DebugTracer",
|
|
307
|
+
"SessionTracer",
|
|
308
|
+
"NullTracer",
|
|
309
|
+
"OutputSchemaFormatter",
|
|
310
|
+
"AppendOutputTool",
|
|
311
|
+
"AgentRoleSettings",
|
|
312
|
+
"ContextFile",
|
|
313
|
+
"ContextMinimalFanoutClient",
|
|
314
|
+
"ContextMinimalFanoutParadigm",
|
|
315
|
+
"ContextMinimalFanoutResult",
|
|
316
|
+
"ContextMinimalFanoutSettings",
|
|
317
|
+
"DeclareOutputSchemaTool",
|
|
318
|
+
"ExtendOutputSchemaTool",
|
|
319
|
+
"EnvironmentContext",
|
|
320
|
+
"EnvironmentSummary",
|
|
321
|
+
"ImplementationOutput",
|
|
322
|
+
"OutputSchemaBuilder",
|
|
323
|
+
"OutputSchemaField",
|
|
324
|
+
"ParadigmClient",
|
|
325
|
+
"ParadigmHarness",
|
|
326
|
+
"ParadigmMinimalToolset",
|
|
327
|
+
"ParentPolicy",
|
|
328
|
+
"PromptSplitPlan",
|
|
329
|
+
"SemanticSpanContext",
|
|
330
|
+
"SessionTraceController",
|
|
331
|
+
"SpanKind",
|
|
332
|
+
"SpanSpec",
|
|
333
|
+
"SplitPrompt",
|
|
334
|
+
"Trace",
|
|
335
|
+
"TraceComponentSettings",
|
|
336
|
+
"TraceController",
|
|
337
|
+
"TraceDetail",
|
|
338
|
+
"TracerBase",
|
|
339
|
+
"TracerConfigurationError",
|
|
340
|
+
"TraceProfile",
|
|
341
|
+
"AggregateAgent",
|
|
342
|
+
"AggregateConfig",
|
|
343
|
+
"AggregateResult",
|
|
344
|
+
"AgentCard",
|
|
345
|
+
"AgentClient",
|
|
346
|
+
"AgentForkSettings",
|
|
347
|
+
"AgentInput",
|
|
348
|
+
"AgentMiddleware",
|
|
349
|
+
"MultiProviderAggregator",
|
|
350
|
+
"ProposerSpec",
|
|
351
|
+
"AuditLogMiddleware",
|
|
352
|
+
"CanaryTripwireMiddleware",
|
|
353
|
+
"ConfusedDeputyGuardMiddleware",
|
|
354
|
+
"AgentMessage",
|
|
355
|
+
"AgentRegistry",
|
|
356
|
+
"AgentRunnerConfig",
|
|
357
|
+
"AgentRuntimeConfig",
|
|
358
|
+
"AgentRuntimeStats",
|
|
359
|
+
"AgentSpec",
|
|
360
|
+
"AgentStopReason",
|
|
361
|
+
"ToolSettings",
|
|
362
|
+
"ArtifactContextItem",
|
|
363
|
+
"BaseAgent",
|
|
364
|
+
"BaseAgentContext",
|
|
365
|
+
"BaseContext",
|
|
366
|
+
"BasePipeline",
|
|
367
|
+
"BaseTool",
|
|
368
|
+
"BatchForkTool",
|
|
369
|
+
"BudgetPreset",
|
|
370
|
+
"ContextBudget",
|
|
371
|
+
"CREATE_TOOL_REGISTRY",
|
|
372
|
+
"CompactionMode",
|
|
373
|
+
"CompactionStats",
|
|
374
|
+
"ContextCompactionEngine",
|
|
375
|
+
"CreateContextPrimitiveTool",
|
|
376
|
+
"ContextEditTool",
|
|
377
|
+
"ContextItem",
|
|
378
|
+
"ContextListTool",
|
|
379
|
+
"ContextManager",
|
|
380
|
+
"ContextMoveTool",
|
|
381
|
+
"ContextPermissions",
|
|
382
|
+
"ContextReciteTool",
|
|
383
|
+
"ContextRemoveTool",
|
|
384
|
+
"ContextStatsTool",
|
|
385
|
+
"ContextUpsertTool",
|
|
386
|
+
"ContextWindowFactory",
|
|
387
|
+
"CreateHandoffTool",
|
|
388
|
+
"CheckpointTool",
|
|
389
|
+
"RunPromptsSequentiallyTool",
|
|
390
|
+
"ContextWindow",
|
|
391
|
+
"ContextWindowAlgorithm",
|
|
392
|
+
"ContextWindowPlacement",
|
|
393
|
+
"ContextWindowRunContext",
|
|
394
|
+
"DocumentContextItem",
|
|
395
|
+
"EnvironmentContextItem",
|
|
396
|
+
"EngineeringHandoff",
|
|
397
|
+
"FileContextItem",
|
|
398
|
+
"GitDiffContextItem",
|
|
399
|
+
"Handoff",
|
|
400
|
+
"HandoffAgent",
|
|
401
|
+
"MemoryContextItem",
|
|
402
|
+
"MinimalHandoff",
|
|
403
|
+
"PlanContextItem",
|
|
404
|
+
"ResearchHandoff",
|
|
405
|
+
"McpAttachmentError",
|
|
406
|
+
"McpConnectionError",
|
|
407
|
+
"McpError",
|
|
408
|
+
"McpInitializeError",
|
|
409
|
+
"McpServerConfig",
|
|
410
|
+
"McpServerHandle",
|
|
411
|
+
"McpStudioServer",
|
|
412
|
+
"McpToolDiscoveryError",
|
|
413
|
+
"McpToolExecutionError",
|
|
414
|
+
"McpToolPermission",
|
|
415
|
+
"MiddlewareAction",
|
|
416
|
+
"MiddlewareContext",
|
|
417
|
+
"MiddlewareDecision",
|
|
418
|
+
"MiddlewareEvent",
|
|
419
|
+
"MiddlewareHook",
|
|
420
|
+
"MiddlewarePipeline",
|
|
421
|
+
"MiddlewareTransform",
|
|
422
|
+
"MessageHistoryCompactionMiddleware",
|
|
423
|
+
"ModelRetryMiddleware",
|
|
424
|
+
"HoneypotToolMiddleware",
|
|
425
|
+
"InnerContextWindowAlgorithm",
|
|
426
|
+
"MultiProviderAgenticGraderAlgorithm",
|
|
427
|
+
"ConditionalPipeline",
|
|
428
|
+
"ErrorCorrectionAlgorithm",
|
|
429
|
+
"ErrorCorrectionContextItem",
|
|
430
|
+
"MapReducePipeline",
|
|
431
|
+
"ParallelPipeline",
|
|
432
|
+
"PermissionPreset",
|
|
433
|
+
"PipelineExecutionError",
|
|
434
|
+
"PipelineNode",
|
|
435
|
+
"PrimitiveToolDefinition",
|
|
436
|
+
"ProblemSpaceSearchAlgorithm",
|
|
437
|
+
"ProblemSpaceSearchContextItem",
|
|
438
|
+
"ProgressContextItem",
|
|
439
|
+
"Prompt",
|
|
440
|
+
"Prompts",
|
|
441
|
+
"ReflexionAlgorithm",
|
|
442
|
+
"ResponseContextItem",
|
|
443
|
+
"RuntimeLimitMiddleware",
|
|
444
|
+
"SummaryCompactionMiddleware",
|
|
445
|
+
"SequentialPipeline",
|
|
446
|
+
"Checkpoint",
|
|
447
|
+
"CheckpointPolicy",
|
|
448
|
+
"FileSessionStore",
|
|
449
|
+
"ForkOutcome",
|
|
450
|
+
"InMemorySessionStore",
|
|
451
|
+
"RunState",
|
|
452
|
+
"Session",
|
|
453
|
+
"SessionClient",
|
|
454
|
+
"SessionError",
|
|
455
|
+
"SessionMeta",
|
|
456
|
+
"SessionNotFoundError",
|
|
457
|
+
"SessionScope",
|
|
458
|
+
"SessionSerializationError",
|
|
459
|
+
"SessionStatus",
|
|
460
|
+
"SessionStore",
|
|
461
|
+
"SessionStoreError",
|
|
462
|
+
"SessionVersionError",
|
|
463
|
+
"ForkTool",
|
|
464
|
+
"ResumeAppendTool",
|
|
465
|
+
"ResumeOutputTool",
|
|
466
|
+
"ResumeReplaceTool",
|
|
467
|
+
"RewindTool",
|
|
468
|
+
"SessionTool",
|
|
469
|
+
"TraceCapture",
|
|
470
|
+
"TaskContextItem",
|
|
471
|
+
"TextContextItem",
|
|
472
|
+
"ToolCall",
|
|
473
|
+
"ToolCallContext",
|
|
474
|
+
"ToolCallContextItem",
|
|
475
|
+
"ToolCallState",
|
|
476
|
+
"ToolResultAdmission",
|
|
477
|
+
"TrajectoryCheckpointAlgorithm",
|
|
478
|
+
"TrajectoryCheckpointContextItem",
|
|
479
|
+
"ToolExecutor",
|
|
480
|
+
"ToolParameter",
|
|
481
|
+
"ToolPermission",
|
|
482
|
+
"ToolRegistry",
|
|
483
|
+
"ToolResult",
|
|
484
|
+
"ToolSpec",
|
|
485
|
+
"ToolStatus",
|
|
486
|
+
"TokenRateLimitMiddleware",
|
|
487
|
+
"ToolResultCompactionMiddleware",
|
|
488
|
+
"ToolPolicyMiddleware",
|
|
489
|
+
"Tools",
|
|
490
|
+
"ToolsFormatter",
|
|
491
|
+
"VidbyteSDK",
|
|
492
|
+
"context_window_tools",
|
|
493
|
+
"BaseGrader",
|
|
494
|
+
"Behavior",
|
|
495
|
+
"AllOfGrader",
|
|
496
|
+
"AnyOfGrader",
|
|
497
|
+
"ChoiceMatchGrader",
|
|
498
|
+
"ClassificationTemplate",
|
|
499
|
+
"ComparisonReport",
|
|
500
|
+
"ConciseGroundedAnswerTemplate",
|
|
501
|
+
"ContainsAllGrader",
|
|
502
|
+
"ContainsGrader",
|
|
503
|
+
"EvalCase",
|
|
504
|
+
"EvalClient",
|
|
505
|
+
"EvalRegistry",
|
|
506
|
+
"EvalResult",
|
|
507
|
+
"EvalRunner",
|
|
508
|
+
"EvalSuite",
|
|
509
|
+
"EvalSuiteResult",
|
|
510
|
+
"EvalTemplate",
|
|
511
|
+
"EvalTemplateRegistry",
|
|
512
|
+
"ExactMatchGrader",
|
|
513
|
+
"ForbiddenContentGrader",
|
|
514
|
+
"GraderResult",
|
|
515
|
+
"JSONExactMatchGrader",
|
|
516
|
+
"JSONSchemaGrader",
|
|
517
|
+
"JSONSubsetGrader",
|
|
518
|
+
"LengthGrader",
|
|
519
|
+
"LLMJudgeGrader",
|
|
520
|
+
"MultipleChoiceTemplate",
|
|
521
|
+
"NumericAnswerTemplate",
|
|
522
|
+
"NumericMatchGrader",
|
|
523
|
+
"PredicateGrader",
|
|
524
|
+
"RegexMatchGrader",
|
|
525
|
+
"RunProbe",
|
|
526
|
+
"RubricGrader",
|
|
527
|
+
"SafeCustomerSupportTemplate",
|
|
528
|
+
"ShortAnswerFactTemplate",
|
|
529
|
+
"StructuredJsonTemplate",
|
|
530
|
+
"WeightedGrader",
|
|
531
|
+
"templates",
|
|
532
|
+
"tool",
|
|
533
|
+
"vidbyte_tool",
|
|
534
|
+
]
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"""Context Protocol Header
|
|
2
|
+
|
|
3
|
+
Description:
|
|
4
|
+
Exposes agents and orchestration primitives for Vidbyte SDK.
|
|
5
|
+
Purpose:
|
|
6
|
+
Allows easy package-level import of BaseAgent, registries, client schemas,
|
|
7
|
+
and swappable execution runtimes.
|
|
8
|
+
Architecture:
|
|
9
|
+
- BaseAgent: Client-facing agent coordinator.
|
|
10
|
+
- AgentRegistry: Local/shared memory storage registry.
|
|
11
|
+
- Swappable Runtimes: LinearAgentRuntime, SearchTreeRuntimeComponent, PointToPointActorRuntime, BroadcastActorRuntime.
|
|
12
|
+
Relations:
|
|
13
|
+
Imported by main client and evaluator harnesses.
|
|
14
|
+
Similar Files:
|
|
15
|
+
- vidbyte/agents/base.py: Agent controller core.
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
from __future__ import annotations
|
|
19
|
+
|
|
20
|
+
from vidbyte.agents.base import BaseAgent
|
|
21
|
+
from vidbyte.agents.aggregation import AggregateAgent, AggregateResult, MultiProviderAggregator
|
|
22
|
+
from vidbyte.agents.client import AgentClient
|
|
23
|
+
from vidbyte.agents.continual_trace import ContinualTraceAgent
|
|
24
|
+
from vidbyte.agents.settings import AgentLoopSettings, ToolErrorPolicy, ToolSettings, UnrecoverableAction
|
|
25
|
+
from vidbyte.agents.contracts import MinElapsedSeconds, MinIterations, MinTokens, MinToolCalls, OutputContract
|
|
26
|
+
from vidbyte.agents.handoff import HandoffAgent
|
|
27
|
+
from vidbyte.agents.context_algorithms import AgentRuntimeContextAlgorithms
|
|
28
|
+
from vidbyte.lib.dataclasses.multi_agent import AggregateConfig, ProposerSpec
|
|
29
|
+
from vidbyte.lib.registries import AgentRegistry
|
|
30
|
+
from vidbyte.agents.runtimes import (
|
|
31
|
+
LinearAgentRuntime as AgentRuntime,
|
|
32
|
+
SearchTreeRuntimeComponent,
|
|
33
|
+
PointToPointActorRuntime,
|
|
34
|
+
BroadcastActorRuntime,
|
|
35
|
+
LinearRuntime,
|
|
36
|
+
MctsSearchRuntime,
|
|
37
|
+
ActorRuntime,
|
|
38
|
+
)
|
|
39
|
+
from vidbyte.lib.dataclasses.agents import (
|
|
40
|
+
AgentRunnerConfig,
|
|
41
|
+
AgentRuntimeConfig,
|
|
42
|
+
AgentRuntimeStats,
|
|
43
|
+
AgentStopReason,
|
|
44
|
+
)
|
|
45
|
+
from vidbyte.agents.types import AgentCard, AgentForkSettings, AgentInput, AgentMessage, AgentSpec
|
|
46
|
+
|
|
47
|
+
Agent = BaseAgent
|
|
48
|
+
|
|
49
|
+
__all__ = [
|
|
50
|
+
"Agent",
|
|
51
|
+
"AggregateAgent",
|
|
52
|
+
"AggregateConfig",
|
|
53
|
+
"AggregateResult",
|
|
54
|
+
"AgentClient",
|
|
55
|
+
"AgentLoopSettings",
|
|
56
|
+
"ToolErrorPolicy",
|
|
57
|
+
"ToolSettings",
|
|
58
|
+
"UnrecoverableAction",
|
|
59
|
+
"OutputContract",
|
|
60
|
+
"MinToolCalls",
|
|
61
|
+
"MinTokens",
|
|
62
|
+
"MinIterations",
|
|
63
|
+
"MinElapsedSeconds",
|
|
64
|
+
"AgentCard",
|
|
65
|
+
"AgentForkSettings",
|
|
66
|
+
"AgentInput",
|
|
67
|
+
"AgentMessage",
|
|
68
|
+
"MultiProviderAggregator",
|
|
69
|
+
"ProposerSpec",
|
|
70
|
+
"AgentRunnerConfig",
|
|
71
|
+
"AgentRuntimeContextAlgorithms",
|
|
72
|
+
"AgentRuntimeConfig",
|
|
73
|
+
"AgentRuntimeStats",
|
|
74
|
+
"AgentRegistry",
|
|
75
|
+
"AgentSpec",
|
|
76
|
+
"AgentStopReason",
|
|
77
|
+
"BaseAgent",
|
|
78
|
+
"ContinualTraceAgent",
|
|
79
|
+
"HandoffAgent",
|
|
80
|
+
"AgentRuntime",
|
|
81
|
+
"SearchTreeRuntimeComponent",
|
|
82
|
+
"PointToPointActorRuntime",
|
|
83
|
+
"BroadcastActorRuntime",
|
|
84
|
+
"LinearRuntime",
|
|
85
|
+
"MctsSearchRuntime",
|
|
86
|
+
"ActorRuntime",
|
|
87
|
+
]
|