badgerflow 0.2.0__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {badgerflow-0.2.0/badgerflow.egg-info → badgerflow-0.2.1}/PKG-INFO +42 -8
- {badgerflow-0.2.0 → badgerflow-0.2.1}/README.md +41 -7
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/__init__.py +1 -1
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/cli/main.py +30 -5
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/cli/plugin.py +400 -41
- badgerflow-0.2.1/badgerflow/cli/plugin_call.py +191 -0
- badgerflow-0.2.1/badgerflow/cli/plugin_image.py +244 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/cli/plugin_scaffold.py +156 -10
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/README.md +1 -1
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/constants.py +15 -2
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/examples/event-policy_violation.json +1 -1
- badgerflow-0.2.1/badgerflow/contract/examples/ir.hash +1 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/examples/ir.json +38 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/examples/manifest.json +39 -1
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/invoke-request.schema.json +1 -1
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/ir.schema.json +72 -26
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/manifest.schema.json +124 -51
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/knowledge/client.py +9 -5
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/langgraph/compile.py +196 -83
- badgerflow-0.2.1/badgerflow/plugin/conformance.py +297 -0
- badgerflow-0.2.1/badgerflow/plugin/egress_proxy.py +368 -0
- badgerflow-0.2.1/badgerflow/plugin/envelope.py +71 -0
- badgerflow-0.2.1/badgerflow/plugin/oci.py +446 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/plugin/testing.py +15 -20
- badgerflow-0.2.1/badgerflow/procode/actor.py +118 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/procode/context.py +7 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/tools/client.py +17 -1
- {badgerflow-0.2.0 → badgerflow-0.2.1/badgerflow.egg-info}/PKG-INFO +42 -8
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow.egg-info/SOURCES.txt +11 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/pyproject.toml +1 -1
- badgerflow-0.2.1/tests/test_actor_tokens.py +200 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_cli.py +9 -4
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_cli_plugin.py +172 -1
- badgerflow-0.2.1/tests/test_cli_plugin_call.py +232 -0
- badgerflow-0.2.1/tests/test_cli_plugin_image.py +261 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_cli_register.py +1 -1
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_contract_constants.py +8 -2
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_contract_hash.py +1 -1
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_contract_schemas.py +2 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_export_golden.py +12 -4
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_import.py +2 -2
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_langgraph_compile.py +106 -22
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_langgraph_stream.py +3 -1
- badgerflow-0.2.1/tests/test_plugin_egress_proxy.py +191 -0
- badgerflow-0.2.1/tests/test_plugin_oci.py +445 -0
- badgerflow-0.2.0/badgerflow/contract/examples/ir.hash +0 -1
- badgerflow-0.2.0/badgerflow/plugin/conformance.py +0 -166
- {badgerflow-0.2.0 → badgerflow-0.2.1}/LICENSE +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/NOTICE +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/agiel/__init__.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/auth/__init__.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/auth/run_token.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/cli/__init__.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/cli/preview.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/cli/project.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/cli/scaffold.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/__init__.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/adapters/__init__.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/adapters/autogen.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/adapters/crewai.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/adapters/langchain.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/cli/__init__.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/cli/main.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/cli/manifest.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/client.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/exceptions.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/resources/__init__.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/resources/agents.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/resources/auth.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/resources/dependencies.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/resources/guardrail_profiles.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/resources/guardrails.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/resources/models.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/resources/namespaces.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/resources/rag.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/resources/releases.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/resources/webhooks.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/resources/workflows.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/connectors/__init__.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/connectors/client.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/__init__.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/event.schema.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/examples/event-complete.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/examples/event-pause_review.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/examples/event-step_completed.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/examples/event-step_started.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/examples/invoke-request.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/examples/invoke-response-completed.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/examples/invoke-response-failed.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/examples/invoke-response-paused.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/hash.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/invoke-response.schema.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/pause.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/README.md +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/__init__.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/attestation.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/constants.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-call-meta--credential-field-not-an-identifier.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-call-meta--missing-namespace.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--any-allowed-with-aliases.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--credentials-without-form.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--duplicate-tool.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--egress-with-scheme.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--no-tools.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--non-object-output-schema.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--select-without-options.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--stale-schema-hash.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--typo-in-tool.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--unknown-effect.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--unknown-permission.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--uppercase-name.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--wildcard-egress.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--wrong-manifest-hash.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-token--audience-not-derived-from-perms.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-token--installation-mismatch.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-token--outlives-a-tool-call.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-token--run-token-marker.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-token--unknown-audience.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/plugin-attestation.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/plugin-attestation.trust.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/plugin-call-meta.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/plugin-manifest.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/plugin-token.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/hash.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/plugin-call-meta.schema.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/plugin-manifest.schema.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/plugin-token.schema.json +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/validate.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/validate.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/events/__init__.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/events/emitter.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/events/steps.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/guardrails/__init__.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/guardrails/client.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/knowledge/__init__.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/langgraph/__init__.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/langgraph/agent.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/langgraph/callback.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/langgraph/chat.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/langgraph/checkpoint.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/langgraph/tools.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/langgraph/uses.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/llm/__init__.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/llm/client.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/ontology/__init__.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/ontology/client.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/otel/__init__.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/otel/logs.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/otel/metrics.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/otel/scope.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/otel/spans.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/otel/tracing.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/plugin/__init__.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/plugin/context.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/plugin/definition.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/plugin/errors.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/plugin/server.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/plugin/signing.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/procode/__init__.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/procode/app.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/procode/clients.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/procode/config.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/procode/current.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/procode/errors.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/procode/stepctx.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/procode/transport.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/tools/__init__.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow.egg-info/dependency_links.txt +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow.egg-info/entry_points.txt +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow.egg-info/requires.txt +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow.egg-info/top_level.txt +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/setup.cfg +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_agent_card.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_claims_chat_example.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_claims_triage_example.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_cli_preview.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_cli_release.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_context_steps.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_contract_pause.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_events_emitter.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_governed_clients.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_langgraph_agent.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_langgraph_approval_example.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_langgraph_checkpoint.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_langgraph_tools.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_llm_client.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_llm_standalone.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_metrics_endpoint.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_otel.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_payout_approval_example.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_plugin_contract.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_plugin_manifest.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_plugin_mcp.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_plugin_storage.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_plugin_testing.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_procode_server.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_proxy_environment.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_run_token_verifier.py +0 -0
- {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_slow_review_example.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: badgerflow
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: BadgerFlow Python SDK: governed pro-code agents, the platform REST client, and the bf / agiel CLIs
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
Keywords: langgraph,agents,llm,governance,badgerflow,mlops
|
|
@@ -91,8 +91,10 @@ app = Agent.from_langgraph(build_graph(), name="claims-triage", version="0.1.0",
|
|
|
91
91
|
```
|
|
92
92
|
|
|
93
93
|
Those declarations are the contract. The platform compiles them into a graph it
|
|
94
|
-
can render
|
|
95
|
-
and
|
|
94
|
+
can render — every node, every conditional edge as a router with its branch
|
|
95
|
+
labels, and the END your graph declares — checks them against what exists in
|
|
96
|
+
your namespace at release time, and denies a node at runtime that reaches for
|
|
97
|
+
something it never declared. `bf compile` shows that graph before you register.
|
|
96
98
|
|
|
97
99
|
## Work that outlives a request
|
|
98
100
|
|
|
@@ -141,6 +143,21 @@ Keep large values out of the graph state. The checkpoint travels with the pause
|
|
|
141
143
|
and is capped; a state that is too big fails the run with a clear reason rather
|
|
142
144
|
than producing a pause the platform cannot file. Hold a reference instead.
|
|
143
145
|
|
|
146
|
+
## Answering a chat
|
|
147
|
+
|
|
148
|
+
A chat-triggered agent receives each turn as text. The platform puts that text
|
|
149
|
+
in `input` and, when your input model has exactly one place for it — its one
|
|
150
|
+
required string field, else its one string field — under that field's name in
|
|
151
|
+
`structured` too, so `Input(problem: str, attempt: str = "")` receives the
|
|
152
|
+
turn as `problem`. Two string fields with nothing to tell them apart is left to
|
|
153
|
+
your model's own validation error.
|
|
154
|
+
|
|
155
|
+
Going back, the bubble shows one field of your output model: the one you mark
|
|
156
|
+
with `Field(json_schema_extra={"x-badgerflow-reply": True})`, else one named
|
|
157
|
+
`reply`, `answer`, `response`, `message`, `text` or `content`, else the single
|
|
158
|
+
string field. An output that names none of those shows as its JSON, which is
|
|
159
|
+
the cue to mark the field. A streamed agent's deltas are always the reply.
|
|
160
|
+
|
|
144
161
|
## Streaming a run
|
|
145
162
|
|
|
146
163
|
Ask for `text/event-stream` and the invocation answers with the run's event
|
|
@@ -257,10 +274,26 @@ Each workspace's credential reaches the tool only inside the platform's call.
|
|
|
257
274
|
model outside `models`. A raised exception becomes a tool error the model can
|
|
258
275
|
read. Test tools in-process with `badgerflow.plugin.testing.PluginTestClient`.
|
|
259
276
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
277
|
+
Before shipping, check the built image and call a tool the way the platform would:
|
|
278
|
+
|
|
279
|
+
```bash
|
|
280
|
+
bf plugin build
|
|
281
|
+
bf plugin validate --image acme-crm:0.1.0 # run non-root, read-only, no capabilities, as the cluster does
|
|
282
|
+
bf plugin call find_customer --image acme-crm:0.1.0 \
|
|
283
|
+
--args '{"email": "ada@example.com"}' --credentials @creds.json
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
`call` sends the platform's call envelope, credentials included, and with
|
|
287
|
+
`--image` puts the plugin behind a local proxy that allows only `egress` and
|
|
288
|
+
prints each connection; `--url` calls a plugin already serving. `ctx.llm` and
|
|
289
|
+
`ctx.storage` have no local platform there.
|
|
290
|
+
|
|
291
|
+
Plugins ship only through your own registry. `bf plugin publish --registry <yours>
|
|
292
|
+
--key <pem> --keyid <id>` pushes the image by digest over the registry API (no
|
|
293
|
+
cosign, no Docker `insecure-registries`; `--insecure` for plain HTTP) and pushes
|
|
294
|
+
the signed attestation beside it; then `bf plugin submit --image <ref>`. The
|
|
295
|
+
platform imports a package only if a key in the operator's trust set signed it.
|
|
296
|
+
`bf plugin init` also writes a CI workflow that runs these on a version tag. `ctx.storage` is a JSON key-value store per calling
|
|
264
297
|
workspace under `storage_bytes`, in memory under `PluginTestClient` and on the
|
|
265
298
|
platform (`BADGERFLOW_PLATFORM_URL`) when served.
|
|
266
299
|
|
|
@@ -276,7 +309,8 @@ platform (`BADGERFLOW_PLATFORM_URL`) when served.
|
|
|
276
309
|
| `bf status` | registration, release, and hash agreement |
|
|
277
310
|
| `bf release submit \| status` | the governed release and its scorecard |
|
|
278
311
|
| `bf models` | the models your model key may call, with prices |
|
|
279
|
-
| `bf plugin init \| manifest \| test \| validate` | author and check a tool plugin |
|
|
312
|
+
| `bf plugin init \| manifest \| test \| validate [--image]` | author and check a tool plugin, or its image |
|
|
313
|
+
| `bf plugin call <tool> --image \| --url` | one call with the platform's envelope and credentials |
|
|
280
314
|
| `bf plugin build \| publish \| sign \| submit \| dev` | package, sign and submit it |
|
|
281
315
|
|
|
282
316
|
## Versioning
|
|
@@ -36,8 +36,10 @@ app = Agent.from_langgraph(build_graph(), name="claims-triage", version="0.1.0",
|
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
Those declarations are the contract. The platform compiles them into a graph it
|
|
39
|
-
can render
|
|
40
|
-
and
|
|
39
|
+
can render — every node, every conditional edge as a router with its branch
|
|
40
|
+
labels, and the END your graph declares — checks them against what exists in
|
|
41
|
+
your namespace at release time, and denies a node at runtime that reaches for
|
|
42
|
+
something it never declared. `bf compile` shows that graph before you register.
|
|
41
43
|
|
|
42
44
|
## Work that outlives a request
|
|
43
45
|
|
|
@@ -86,6 +88,21 @@ Keep large values out of the graph state. The checkpoint travels with the pause
|
|
|
86
88
|
and is capped; a state that is too big fails the run with a clear reason rather
|
|
87
89
|
than producing a pause the platform cannot file. Hold a reference instead.
|
|
88
90
|
|
|
91
|
+
## Answering a chat
|
|
92
|
+
|
|
93
|
+
A chat-triggered agent receives each turn as text. The platform puts that text
|
|
94
|
+
in `input` and, when your input model has exactly one place for it — its one
|
|
95
|
+
required string field, else its one string field — under that field's name in
|
|
96
|
+
`structured` too, so `Input(problem: str, attempt: str = "")` receives the
|
|
97
|
+
turn as `problem`. Two string fields with nothing to tell them apart is left to
|
|
98
|
+
your model's own validation error.
|
|
99
|
+
|
|
100
|
+
Going back, the bubble shows one field of your output model: the one you mark
|
|
101
|
+
with `Field(json_schema_extra={"x-badgerflow-reply": True})`, else one named
|
|
102
|
+
`reply`, `answer`, `response`, `message`, `text` or `content`, else the single
|
|
103
|
+
string field. An output that names none of those shows as its JSON, which is
|
|
104
|
+
the cue to mark the field. A streamed agent's deltas are always the reply.
|
|
105
|
+
|
|
89
106
|
## Streaming a run
|
|
90
107
|
|
|
91
108
|
Ask for `text/event-stream` and the invocation answers with the run's event
|
|
@@ -202,10 +219,26 @@ Each workspace's credential reaches the tool only inside the platform's call.
|
|
|
202
219
|
model outside `models`. A raised exception becomes a tool error the model can
|
|
203
220
|
read. Test tools in-process with `badgerflow.plugin.testing.PluginTestClient`.
|
|
204
221
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
222
|
+
Before shipping, check the built image and call a tool the way the platform would:
|
|
223
|
+
|
|
224
|
+
```bash
|
|
225
|
+
bf plugin build
|
|
226
|
+
bf plugin validate --image acme-crm:0.1.0 # run non-root, read-only, no capabilities, as the cluster does
|
|
227
|
+
bf plugin call find_customer --image acme-crm:0.1.0 \
|
|
228
|
+
--args '{"email": "ada@example.com"}' --credentials @creds.json
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
`call` sends the platform's call envelope, credentials included, and with
|
|
232
|
+
`--image` puts the plugin behind a local proxy that allows only `egress` and
|
|
233
|
+
prints each connection; `--url` calls a plugin already serving. `ctx.llm` and
|
|
234
|
+
`ctx.storage` have no local platform there.
|
|
235
|
+
|
|
236
|
+
Plugins ship only through your own registry. `bf plugin publish --registry <yours>
|
|
237
|
+
--key <pem> --keyid <id>` pushes the image by digest over the registry API (no
|
|
238
|
+
cosign, no Docker `insecure-registries`; `--insecure` for plain HTTP) and pushes
|
|
239
|
+
the signed attestation beside it; then `bf plugin submit --image <ref>`. The
|
|
240
|
+
platform imports a package only if a key in the operator's trust set signed it.
|
|
241
|
+
`bf plugin init` also writes a CI workflow that runs these on a version tag. `ctx.storage` is a JSON key-value store per calling
|
|
209
242
|
workspace under `storage_bytes`, in memory under `PluginTestClient` and on the
|
|
210
243
|
platform (`BADGERFLOW_PLATFORM_URL`) when served.
|
|
211
244
|
|
|
@@ -221,7 +254,8 @@ platform (`BADGERFLOW_PLATFORM_URL`) when served.
|
|
|
221
254
|
| `bf status` | registration, release, and hash agreement |
|
|
222
255
|
| `bf release submit \| status` | the governed release and its scorecard |
|
|
223
256
|
| `bf models` | the models your model key may call, with prices |
|
|
224
|
-
| `bf plugin init \| manifest \| test \| validate` | author and check a tool plugin |
|
|
257
|
+
| `bf plugin init \| manifest \| test \| validate [--image]` | author and check a tool plugin, or its image |
|
|
258
|
+
| `bf plugin call <tool> --image \| --url` | one call with the platform's envelope and credentials |
|
|
225
259
|
| `bf plugin build \| publish \| sign \| submit \| dev` | package, sign and submit it |
|
|
226
260
|
|
|
227
261
|
## Versioning
|
|
@@ -316,10 +316,7 @@ def validate(
|
|
|
316
316
|
console.print(_requires_table(manifest["requires"]))
|
|
317
317
|
graph = manifest.get("graph")
|
|
318
318
|
if graph is not None:
|
|
319
|
-
console.print(
|
|
320
|
-
f" graph {len(graph['nodes'])} nodes, {len(graph['edges'])} edges, "
|
|
321
|
-
f"{len(graph.get('interactions') or ())} interactions — `bf compile` for the IR"
|
|
322
|
-
)
|
|
319
|
+
console.print(f" graph {graph_summary(graph)} — `bf compile` for the IR")
|
|
323
320
|
_print_warnings(agent.warnings)
|
|
324
321
|
if against:
|
|
325
322
|
rows, unpreviewable = _preview(cwd, manifest, against)
|
|
@@ -499,6 +496,27 @@ def _str_or_none(value: Any) -> str | None:
|
|
|
499
496
|
return text or None
|
|
500
497
|
|
|
501
498
|
|
|
499
|
+
#: How ``bf compile`` names each IR node kind — the SDK's words, not the wire's.
|
|
500
|
+
_NODE_KIND_LABEL = {"procode_node": "node", "procode_router": "router", "procode_end": "end"}
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
def graph_summary(graph: Mapping[str, Any]) -> str:
|
|
504
|
+
"""``"5 nodes, 2 routers, an end, 9 edges, 1 interactions"`` — routers and the
|
|
505
|
+
end counted apart from the stepped nodes, since a reader comparing the line to
|
|
506
|
+
their ``add_node`` calls should find their own number in it."""
|
|
507
|
+
kinds = [n.get("kind") for n in graph.get("nodes") or []]
|
|
508
|
+
stepped = sum(1 for k in kinds if k not in ("procode_router", "procode_end"))
|
|
509
|
+
routers = sum(1 for k in kinds if k == "procode_router")
|
|
510
|
+
parts = [f"{stepped} nodes"]
|
|
511
|
+
if routers:
|
|
512
|
+
parts.append(f"{routers} router{'s' if routers != 1 else ''}")
|
|
513
|
+
if "procode_end" in kinds:
|
|
514
|
+
parts.append("an end")
|
|
515
|
+
parts.append(f"{len(graph.get('edges') or [])} edges")
|
|
516
|
+
parts.append(f"{len(graph.get('interactions') or [])} interactions")
|
|
517
|
+
return ", ".join(parts)
|
|
518
|
+
|
|
519
|
+
|
|
502
520
|
def _print_graph(agent: Any, graph: Mapping[str, Any]) -> None:
|
|
503
521
|
console.print(
|
|
504
522
|
f"[green]✓[/green] {escape(agent.name)} {escape(agent.version)} — process IR v"
|
|
@@ -508,6 +526,7 @@ def _print_graph(agent: Any, graph: Mapping[str, Any]) -> None:
|
|
|
508
526
|
console.print(f" ir_hash {agent.manifest_hash}")
|
|
509
527
|
nodes = Table(title="nodes", show_header=True, header_style="bold")
|
|
510
528
|
nodes.add_column("id")
|
|
529
|
+
nodes.add_column("kind")
|
|
511
530
|
nodes.add_column("determinism")
|
|
512
531
|
nodes.add_column("uses")
|
|
513
532
|
for node in graph["nodes"]:
|
|
@@ -519,9 +538,15 @@ def _print_graph(agent: Any, graph: Mapping[str, Any]) -> None:
|
|
|
519
538
|
parts.append(f"{key}={','.join(map(str, value))}")
|
|
520
539
|
elif isinstance(value, str) and value:
|
|
521
540
|
parts.append(f"{key}={value}")
|
|
541
|
+
# A router declares no uses; what it declares is where it routes from.
|
|
542
|
+
if config.get("source"):
|
|
543
|
+
parts.append(f"routes from {escape(str(config['source']))}")
|
|
522
544
|
if config.get("dynamic"):
|
|
523
545
|
parts.append("[yellow]dynamic[/yellow]")
|
|
524
|
-
nodes.add_row(
|
|
546
|
+
nodes.add_row(
|
|
547
|
+
escape(node["id"]), _NODE_KIND_LABEL.get(node["kind"], node["kind"]),
|
|
548
|
+
node["determinism"], " ".join(parts) or "—",
|
|
549
|
+
)
|
|
525
550
|
console.print(nodes)
|
|
526
551
|
if graph["edges"]:
|
|
527
552
|
console.print("[bold]edges[/bold]")
|