@bluefly/openstandardagents 0.2.4
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.
- package/.env.example +41 -0
- package/.eslintrc.cjs +43 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +39 -0
- package/.github/dependabot.yml +58 -0
- package/.github/workflows/ci.yml +154 -0
- package/.github/workflows/codeql.yml +41 -0
- package/.github/workflows/dependabot-auto-merge.yml +28 -0
- package/.github/workflows/release.yml +103 -0
- package/.prettierignore +7 -0
- package/.prettierrc.json +10 -0
- package/.redocly.yaml +9 -0
- package/.releaserc.json +84 -0
- package/.releaserc.json.disabled +81 -0
- package/CHANGELOG.md +152 -0
- package/CONTRIBUTING.md +249 -0
- package/LICENSE +190 -0
- package/README.md +280 -0
- package/bin/ossa +8 -0
- package/bin/validate-ossa-0.2.2.ts +244 -0
- package/dist/di-container.d.ts +18 -0
- package/dist/di-container.d.ts.map +1 -0
- package/dist/di-container.js +43 -0
- package/dist/di-container.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -0
- package/dist/repositories/manifest.repository.d.ts +26 -0
- package/dist/repositories/manifest.repository.d.ts.map +1 -0
- package/dist/repositories/manifest.repository.js +90 -0
- package/dist/repositories/manifest.repository.js.map +1 -0
- package/dist/repositories/schema.repository.d.ts +30 -0
- package/dist/repositories/schema.repository.d.ts.map +1 -0
- package/dist/repositories/schema.repository.js +143 -0
- package/dist/repositories/schema.repository.js.map +1 -0
- package/dist/services/generation.service.d.ts +54 -0
- package/dist/services/generation.service.d.ts.map +1 -0
- package/dist/services/generation.service.js +298 -0
- package/dist/services/generation.service.js.map +1 -0
- package/dist/services/migration.service.d.ts +30 -0
- package/dist/services/migration.service.d.ts.map +1 -0
- package/dist/services/migration.service.js +231 -0
- package/dist/services/migration.service.js.map +1 -0
- package/dist/services/runtime/openai.adapter.d.ts +94 -0
- package/dist/services/runtime/openai.adapter.d.ts.map +1 -0
- package/dist/services/runtime/openai.adapter.js +209 -0
- package/dist/services/runtime/openai.adapter.js.map +1 -0
- package/dist/services/validation.service.d.ts +45 -0
- package/dist/services/validation.service.d.ts.map +1 -0
- package/dist/services/validation.service.js +362 -0
- package/dist/services/validation.service.js.map +1 -0
- package/dist/services/validators/anthropic.validator.d.ts +9 -0
- package/dist/services/validators/anthropic.validator.d.ts.map +1 -0
- package/dist/services/validators/anthropic.validator.js +105 -0
- package/dist/services/validators/anthropic.validator.js.map +1 -0
- package/dist/services/validators/autogen.validator.d.ts +9 -0
- package/dist/services/validators/autogen.validator.d.ts.map +1 -0
- package/dist/services/validators/autogen.validator.js +111 -0
- package/dist/services/validators/autogen.validator.js.map +1 -0
- package/dist/services/validators/crewai.validator.d.ts +9 -0
- package/dist/services/validators/crewai.validator.d.ts.map +1 -0
- package/dist/services/validators/crewai.validator.js +117 -0
- package/dist/services/validators/crewai.validator.js.map +1 -0
- package/dist/services/validators/cursor.validator.d.ts +9 -0
- package/dist/services/validators/cursor.validator.d.ts.map +1 -0
- package/dist/services/validators/cursor.validator.js +88 -0
- package/dist/services/validators/cursor.validator.js.map +1 -0
- package/dist/services/validators/index.d.ts +15 -0
- package/dist/services/validators/index.d.ts.map +1 -0
- package/dist/services/validators/index.js +15 -0
- package/dist/services/validators/index.js.map +1 -0
- package/dist/services/validators/langchain.validator.d.ts +9 -0
- package/dist/services/validators/langchain.validator.d.ts.map +1 -0
- package/dist/services/validators/langchain.validator.js +103 -0
- package/dist/services/validators/langchain.validator.js.map +1 -0
- package/dist/services/validators/langflow.validator.d.ts +9 -0
- package/dist/services/validators/langflow.validator.d.ts.map +1 -0
- package/dist/services/validators/langflow.validator.js +92 -0
- package/dist/services/validators/langflow.validator.js.map +1 -0
- package/dist/services/validators/langgraph.validator.d.ts +9 -0
- package/dist/services/validators/langgraph.validator.d.ts.map +1 -0
- package/dist/services/validators/langgraph.validator.js +123 -0
- package/dist/services/validators/langgraph.validator.js.map +1 -0
- package/dist/services/validators/llamaindex.validator.d.ts +9 -0
- package/dist/services/validators/llamaindex.validator.d.ts.map +1 -0
- package/dist/services/validators/llamaindex.validator.js +121 -0
- package/dist/services/validators/llamaindex.validator.js.map +1 -0
- package/dist/services/validators/openai.validator.d.ts +9 -0
- package/dist/services/validators/openai.validator.d.ts.map +1 -0
- package/dist/services/validators/openai.validator.js +126 -0
- package/dist/services/validators/openai.validator.js.map +1 -0
- package/dist/services/validators/vercel-ai.validator.d.ts +9 -0
- package/dist/services/validators/vercel-ai.validator.d.ts.map +1 -0
- package/dist/services/validators/vercel-ai.validator.js +99 -0
- package/dist/services/validators/vercel-ai.validator.js.map +1 -0
- package/dist/spec/v0.1.9/agent-autonomous-extensions.json +234 -0
- package/dist/spec/v0.1.9/ecosystem-compliance.json +235 -0
- package/dist/spec/v0.1.9/ossa-v0.1.9.schema.json +695 -0
- package/dist/spec/v0.1.9/ossa-v0.1.9.schema.json.backup +695 -0
- package/dist/spec/v0.1.9/reasoning-compliance.json +654 -0
- package/dist/spec/v0.2.2/kagent-enhancements.json +395 -0
- package/dist/spec/v0.2.2/ossa-0.2.2.schema.json +906 -0
- package/dist/spec/v0.2.2/ossa-0.2.2.yaml +448 -0
- package/dist/spec/v0.2.2/ossa-reasoning-compliance-1.0.schema.json +424 -0
- package/dist/spec/v0.2.3/CHANGELOG.md +176 -0
- package/dist/spec/v0.2.3/README.md +154 -0
- package/dist/spec/v0.2.3/migrations/v0.2.2-to-v0.2.3.md +343 -0
- package/dist/spec/v0.2.3/ossa-0.2.3.schema.json +1397 -0
- package/dist/spec/v0.2.3/ossa-0.2.3.yaml +448 -0
- package/dist/spec/v0.2.4-dev/CHANGELOG.md +403 -0
- package/dist/spec/v0.2.4-dev/migrations/v0.2.3-to-v0.2.4.md +599 -0
- package/dist/spec/v0.2.4-dev/ossa-0.2.4-dev.schema.json +1696 -0
- package/dist/spec/v0.2.4-dev/ossa-0.2.4-dev.yaml +581 -0
- package/dist/spec/v0.2.5-dev/CHANGELOG.md +171 -0
- package/dist/spec/v0.2.5-dev/examples/customer-support-graph.ossa.yaml +362 -0
- package/dist/spec/v0.2.5-dev/examples/parallel-processors.ossa.yaml +464 -0
- package/dist/spec/v0.2.5-dev/examples/research-team.ossa.yaml +440 -0
- package/dist/spec/v0.2.5-dev/migrations/v0.2.4-to-v0.2.5.md +317 -0
- package/dist/spec/v0.2.5-dev/ossa-0.2.5-dev.schema.json +1732 -0
- package/dist/spec/v0.2.5-dev/ossa-0.2.5-dev.yaml +409 -0
- package/dist/types/index.d.ts +178 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +6 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/openapi-extensions.d.ts +164 -0
- package/dist/types/openapi-extensions.d.ts.map +1 -0
- package/dist/types/openapi-extensions.js +6 -0
- package/dist/types/openapi-extensions.js.map +1 -0
- package/docs/OSSA-COMPLIANT-BADGE.md +248 -0
- package/docs/README.md +31 -0
- package/docs/VERSIONING.md +284 -0
- package/docs/agent-openapi-spec.yml +942 -0
- package/docs/getting-started.md +87 -0
- package/docs/migration/general-agent-schema.yml +255 -0
- package/docs/migration/migration-manifest.json +64 -0
- package/docs/openapi-extensions.md +930 -0
- package/docs/schemas/openapi-extensions.schema.json +486 -0
- package/examples/adk-integration/code-review-workflow.yml +136 -0
- package/examples/adk-integration/customer-support.yml +263 -0
- package/examples/adk-integration/data-pipeline.yml +173 -0
- package/examples/advanced/patterns/compliance-context-production.json +53 -0
- package/examples/advanced/patterns/model-router.ts +274 -0
- package/examples/advanced/patterns/smart-model-routing.ts +248 -0
- package/examples/advanced/workflows/hybrid-model-strategy.yaml +232 -0
- package/examples/agent-manifests/critics/critic-agent.yaml +149 -0
- package/examples/agent-manifests/governors/governor-agent.yaml +128 -0
- package/examples/agent-manifests/integrators/integrator-agent.yaml +103 -0
- package/examples/agent-manifests/judges/judge-agent.yaml +153 -0
- package/examples/agent-manifests/monitors/monitor-agent.yaml +122 -0
- package/examples/agent-manifests/orchestrators/orchestrator-agent.yaml +247 -0
- package/examples/agent-manifests/sample-compliant-agent.yaml +147 -0
- package/examples/agent-manifests/workers/worker-agent.yaml +82 -0
- package/examples/anthropic/claude-assistant.ossa.json +45 -0
- package/examples/architecture/model-configuration/ollama-integration.ts +110 -0
- package/examples/autogen/multi-agent.ossa.json +37 -0
- package/examples/bridge-configurations.yaml +346 -0
- package/examples/bridges/Dockerfile.production +87 -0
- package/examples/bridges/__pycache__/aiflow-bridge-enhanced.cpython-313.pyc +0 -0
- package/examples/bridges/__pycache__/aiflow-phoenix-tracing.cpython-313.pyc +0 -0
- package/examples/bridges/__pycache__/test_aiflow_integration.cpython-313.pyc +0 -0
- package/examples/bridges/aiflow-bridge-enhanced.py +462 -0
- package/examples/bridges/aiflow-bridge-example.yml +310 -0
- package/examples/bridges/aiflow-phoenix-tracing.py +310 -0
- package/examples/bridges/aiflow-registration-api.openapi.yml +439 -0
- package/examples/bridges/k8s/configmap.yaml +121 -0
- package/examples/bridges/k8s/deployment-simple.yaml +34 -0
- package/examples/bridges/k8s/deployment.yaml +275 -0
- package/examples/bridges/k8s/hpa.yaml +126 -0
- package/examples/bridges/k8s/ingress.yaml +155 -0
- package/examples/bridges/kagent-bridge-example.yml +94 -0
- package/examples/bridges/load-tests/Dockerfile +28 -0
- package/examples/bridges/load-tests/k6-load-test.js +302 -0
- package/examples/bridges/load-tests/requirements.txt +20 -0
- package/examples/bridges/loadtest/k6-scenarios.js +270 -0
- package/examples/bridges/phase4/SLO-SLA.yaml +249 -0
- package/examples/bridges/phase4/chaos-tests.yaml +226 -0
- package/examples/bridges/requirements.txt +24 -0
- package/examples/bridges/test_aiflow_integration.py +341 -0
- package/examples/common_npm/agent-router.ossa.yaml +182 -0
- package/examples/common_npm/agent-router.v0.2.2.ossa.yaml +60 -0
- package/examples/compliance-agent.yml +155 -0
- package/examples/crewai/research-team.ossa.json +36 -0
- package/examples/cursor/code-review-agent.ossa.json +47 -0
- package/examples/drupal/gitlab-ml-recommender.ossa.yaml +609 -0
- package/examples/drupal/gitlab-ml-recommender.v0.2.2.ossa.yaml +68 -0
- package/examples/enterprise/agent.yml +452 -0
- package/examples/extensions/drupal-v1.yml +266 -0
- package/examples/extensions/kagent-v1.yml +167 -0
- package/examples/getting-started/hello-world-complete.ossa.yaml +266 -0
- package/examples/integration-patterns/agent-to-agent-orchestration.ossa.yaml +376 -0
- package/examples/kagent/README.md +31 -0
- package/examples/kagent/compliance-validator.ossa.yaml +111 -0
- package/examples/kagent/cost-optimizer.ossa.yaml +93 -0
- package/examples/kagent/documentation-agent.ossa.yaml +91 -0
- package/examples/kagent/k8s-troubleshooter-v1.ossa.yaml +269 -0
- package/examples/kagent/k8s-troubleshooter-v1.v0.2.2.ossa.yaml +106 -0
- package/examples/kagent/k8s-troubleshooter.ossa.yaml +257 -0
- package/examples/kagent/security-scanner.ossa.yaml +140 -0
- package/examples/langchain/chain-agent.ossa.json +42 -0
- package/examples/langflow/workflow-agent.ossa.json +39 -0
- package/examples/langgraph/state-machine-agent.ossa.json +59 -0
- package/examples/llamaindex/rag-agent.ossa.json +41 -0
- package/examples/migration-guides/from-langchain-to-ossa.yaml +309 -0
- package/examples/minimal/agent.yml +152 -0
- package/examples/minimal/openapi.yaml +95 -0
- package/examples/openai/swarm-agent.ossa.json +59 -0
- package/examples/openapi-extensions/README.md +87 -0
- package/examples/openapi-extensions/minimal-agent-api.openapi.yml +288 -0
- package/examples/openapi-extensions/orchestrator-agent-api.openapi.yml +633 -0
- package/examples/openapi-extensions/worker-agent-api.openapi.yml +533 -0
- package/examples/production/agent.yml +713 -0
- package/examples/production/document-analyzer-openai.yml +134 -0
- package/examples/quickstart/support-agent.ossa.yaml +59 -0
- package/examples/service-registry-usage.ts +423 -0
- package/examples/spec-examples/audit-agent.yml +147 -0
- package/examples/spec-examples/chat-agent.yml +189 -0
- package/examples/spec-examples/compliance-agent.yml +204 -0
- package/examples/spec-examples/data-processing-agent.yml +132 -0
- package/examples/spec-examples/development-agent.yml +138 -0
- package/examples/spec-examples/edge-agent.yml +101 -0
- package/examples/spec-examples/integration-agent.yml +129 -0
- package/examples/spec-examples/monitoring-agent.yml +130 -0
- package/examples/spec-examples/serverless-agent.yml +82 -0
- package/examples/spec-examples/workflow-agent.yml +223 -0
- package/examples/templates/ossa-compliance.yaml +56 -0
- package/examples/typescript/advanced/demo-registry.ts +168 -0
- package/examples/typescript/mcpb-agent-example.ts +358 -0
- package/examples/vercel/edge-agent.ossa.json +43 -0
- package/infrastructure/docker-compose.yml +33 -0
- package/junit.xml +1 -0
- package/openapi/drupal-agent-api.openapi.yaml +348 -0
- package/openapi/gitlab-orchestrator.openapi.yaml +330 -0
- package/openapi/helm-generator.openapi.yaml +389 -0
- package/openapi/ossa-core-api.openapi.yaml +1448 -0
- package/openapi/ossa-registry-api.openapi.yaml +980 -0
- package/openapi/ossa-registry.openapi.yaml +782 -0
- package/openapi/self-evolving-ecosystem.openapi.yaml +1530 -0
- package/openapi/unified-agent-gateway.openapi.yaml +833 -0
- package/ossa-website-swarm-tasks.json +105 -0
- package/package.json +132 -0
- package/release.config.js +64 -0
- package/spec/v0.1.9/agent-autonomous-extensions.json +234 -0
- package/spec/v0.1.9/ecosystem-compliance.json +235 -0
- package/spec/v0.1.9/ossa-v0.1.9.schema.json +695 -0
- package/spec/v0.1.9/ossa-v0.1.9.schema.json.backup +695 -0
- package/spec/v0.1.9/reasoning-compliance.json +654 -0
- package/spec/v0.2.2/kagent-enhancements.json +395 -0
- package/spec/v0.2.2/ossa-0.2.2.schema.json +906 -0
- package/spec/v0.2.2/ossa-0.2.2.yaml +448 -0
- package/spec/v0.2.2/ossa-reasoning-compliance-1.0.schema.json +424 -0
- package/spec/v0.2.3/CHANGELOG.md +176 -0
- package/spec/v0.2.3/README.md +154 -0
- package/spec/v0.2.3/migrations/v0.2.2-to-v0.2.3.md +343 -0
- package/spec/v0.2.3/ossa-0.2.3.schema.json +1397 -0
- package/spec/v0.2.3/ossa-0.2.3.yaml +448 -0
- package/spec/v0.2.4-dev/CHANGELOG.md +403 -0
- package/spec/v0.2.4-dev/migrations/v0.2.3-to-v0.2.4.md +599 -0
- package/spec/v0.2.4-dev/ossa-0.2.4-dev.schema.json +1696 -0
- package/spec/v0.2.4-dev/ossa-0.2.4-dev.yaml +581 -0
- package/spec/v0.2.5-dev/CHANGELOG.md +171 -0
- package/spec/v0.2.5-dev/examples/customer-support-graph.ossa.yaml +362 -0
- package/spec/v0.2.5-dev/examples/parallel-processors.ossa.yaml +464 -0
- package/spec/v0.2.5-dev/examples/research-team.ossa.yaml +440 -0
- package/spec/v0.2.5-dev/migrations/v0.2.4-to-v0.2.5.md +317 -0
- package/spec/v0.2.5-dev/ossa-0.2.5-dev.schema.json +1732 -0
- package/spec/v0.2.5-dev/ossa-0.2.5-dev.yaml +409 -0
- package/test-results.xml +1 -0
- package/website/.lighthouserc.js +20 -0
- package/website/.prettierrc +10 -0
- package/website/Dockerfile +17 -0
- package/website/app/about/page.tsx +295 -0
- package/website/app/api/validate/route.ts +88 -0
- package/website/app/blog/[slug]/page.tsx +167 -0
- package/website/app/blog/page.tsx +162 -0
- package/website/app/docs/[[...slug]]/page.tsx +349 -0
- package/website/app/docs/core-concepts/project-structure/page.tsx +349 -0
- package/website/app/ecosystem/page.tsx +375 -0
- package/website/app/examples/page.tsx +123 -0
- package/website/app/globals.css +108 -0
- package/website/app/layout.tsx +106 -0
- package/website/app/page.tsx +409 -0
- package/website/app/playground/page.tsx +507 -0
- package/website/app/robots.ts +19 -0
- package/website/app/rss.xml/route.ts +74 -0
- package/website/app/schema/page.tsx +970 -0
- package/website/app/sitemap.ts +56 -0
- package/website/app/specification/page.tsx +211 -0
- package/website/components/InstallCommand.tsx +96 -0
- package/website/components/Logo.tsx +24 -0
- package/website/components/StructuredData.tsx +65 -0
- package/website/components/docs/DocsSearch.tsx +104 -0
- package/website/components/docs/DocsSidebar.tsx +118 -0
- package/website/components/docs/MarkdownContent.tsx +183 -0
- package/website/components/docs/VersionSelector.tsx +49 -0
- package/website/components/examples/ExamplesViewer.tsx +293 -0
- package/website/components/layout/Footer.tsx +111 -0
- package/website/components/layout/Header.tsx +170 -0
- package/website/components/schema/SchemaExplorer.tsx +213 -0
- package/website/content/blog/OpenAPI-AI-Agents-Standard.md +285 -0
- package/website/content/blog/Why-Formal-Standards-Matter-Now.md +209 -0
- package/website/content/blog/introducing-ossa-framework.md +328 -0
- package/website/content/blog/ossa-production-results.md +279 -0
- package/website/content/blog/welcome-to-ossa.md +43 -0
- package/website/content/blog/why-ai-agents-need-open-standard.md +98 -0
- package/website/content/docs/00-HOME.md +160 -0
- package/website/content/docs/AIFlow-Framework-Integration-with-OSSA.md +107 -0
- package/website/content/docs/OpenAPI-Extensions.md +498 -0
- package/website/content/docs/architecture/execution-flow.md +335 -0
- package/website/content/docs/architecture/multi-agent-systems.md +737 -0
- package/website/content/docs/architecture/overview.md +121 -0
- package/website/content/docs/architecture/stack-integration.md +461 -0
- package/website/content/docs/changelog.md +246 -0
- package/website/content/docs/contributing.md +599 -0
- package/website/content/docs/core-concepts/project-structure.md +348 -0
- package/website/content/docs/ecosystem/framework-support.md +821 -0
- package/website/content/docs/ecosystem/overview.md +366 -0
- package/website/content/docs/examples/Migration-Guides.md +214 -0
- package/website/content/docs/examples.md +71 -0
- package/website/content/docs/for-audiences/Enterprises.md +256 -0
- package/website/content/docs/for-audiences/Students-Researchers.md +122 -0
- package/website/content/docs/for-audiences/architects.md +224 -0
- package/website/content/docs/for-audiences/developers.md +220 -0
- package/website/content/docs/getting-started/5-minute-overview.md +85 -0
- package/website/content/docs/getting-started/Hello-World.md +184 -0
- package/website/content/docs/getting-started/first-agent.md +196 -0
- package/website/content/docs/getting-started/installation.md +155 -0
- package/website/content/docs/getting-started/running-agents.md +107 -0
- package/website/content/docs/integrations/aiflow.md +104 -0
- package/website/content/docs/integrations/drupal.md +105 -0
- package/website/content/docs/migration-guides/00-index.md +76 -0
- package/website/content/docs/migration-guides/README.md +133 -0
- package/website/content/docs/migration-guides/anthropic-mcp-to-ossa.md +1750 -0
- package/website/content/docs/migration-guides/crewai-to-ossa.md +274 -0
- package/website/content/docs/migration-guides/drupal-eca-to-ossa.md +2017 -0
- package/website/content/docs/migration-guides/index.md +133 -0
- package/website/content/docs/migration-guides/langchain-to-ossa.md +1714 -0
- package/website/content/docs/migration-guides/langflow-to-ossa.md +2075 -0
- package/website/content/docs/migration-guides/openai-to-ossa.md +1202 -0
- package/website/content/docs/openapi-extensions/examples.md +550 -0
- package/website/content/docs/openapi-extensions/index.md +495 -0
- package/website/content/docs/openapi-extensions/operation-extensions.md +398 -0
- package/website/content/docs/openapi-extensions/root-extensions.md +364 -0
- package/website/content/docs/pre-release/index.md +175 -0
- package/website/content/docs/quick-reference.md +17 -0
- package/website/content/docs/schema-reference/agent-spec.md +406 -0
- package/website/content/docs/schema-reference/autonomy.md +568 -0
- package/website/content/docs/schema-reference/constraints.md +543 -0
- package/website/content/docs/schema-reference/index.md +176 -0
- package/website/content/docs/schema-reference/llm-config.md +445 -0
- package/website/content/docs/schema-reference/observability.md +654 -0
- package/website/content/docs/schema-reference/ossa-manifest.md +309 -0
- package/website/content/docs/schema-reference/taxonomy.md +509 -0
- package/website/content/docs/schema-reference/tools.md +628 -0
- package/website/content/docs/templates/blog-post.md +43 -0
- package/website/content/docs/use-cases/00-index.md +395 -0
- package/website/content/docs/use-cases/cicd-code-review.md +1236 -0
- package/website/content/docs/use-cases/customer-support.md +1234 -0
- package/website/content/docs/use-cases/enterprise-compliance.md +1208 -0
- package/website/content/docs/use-cases/research-multi-agent.md +1161 -0
- package/website/lib/version.ts +18 -0
- package/website/next.config.js +17 -0
- package/website/next.config.ts +16 -0
- package/website/nginx.conf +32 -0
- package/website/package-lock.json +9145 -0
- package/website/package.json +53 -0
- package/website/postcss.config.js +7 -0
- package/website/postcss.config.mjs +9 -0
- package/website/scripts/sync-version.js +44 -0
- package/website/scripts/sync-wiki.ts +261 -0
- package/website/tailwind.config.js +58 -0
- package/website/tailwind.config.ts +65 -0
|
@@ -0,0 +1,633 @@
|
|
|
1
|
+
# ============================================================================
|
|
2
|
+
# OSSA Multi-Agent Orchestrator OpenAPI Specification
|
|
3
|
+
# ============================================================================
|
|
4
|
+
# Purpose: REST API definition for orchestrator agent with OSSA extensions
|
|
5
|
+
#
|
|
6
|
+
# Key Concepts:
|
|
7
|
+
# - OpenAPI-First Design: API specification drives implementation
|
|
8
|
+
# - OSSA Extensions: x-ossa-* fields add agent-specific metadata
|
|
9
|
+
# - Multi-Agent Coordination: Delegate workflow steps to specialized agents
|
|
10
|
+
# - Workflow Orchestration: Manage complex multi-step processes
|
|
11
|
+
#
|
|
12
|
+
# OSSA Extensions Used:
|
|
13
|
+
# - x-ossa-metadata: Top-level compliance and governance metadata
|
|
14
|
+
# - x-ossa: Agent identity and compliance standards
|
|
15
|
+
# - x-agent: Agent-specific capabilities, tools, and rules
|
|
16
|
+
# - x-ossa-capability: Endpoint-level capability mapping
|
|
17
|
+
# - x-ossa-autonomy: Approval requirements and allowed actions
|
|
18
|
+
# - x-ossa-constraints: Cost, performance, and time limits
|
|
19
|
+
# - x-ossa-tools: MCP server integrations for agent coordination
|
|
20
|
+
# - x-ossa-llm: LLM configuration for intelligent orchestration
|
|
21
|
+
#
|
|
22
|
+
# Related Examples:
|
|
23
|
+
# - examples/agent-manifests/orchestrators/orchestrator-agent.yaml (OSSA manifest)
|
|
24
|
+
# - examples/production/agent.yml (Worker agent pattern)
|
|
25
|
+
# - examples/openapi-extensions/worker-agent-api.openapi.yml (Worker API)
|
|
26
|
+
#
|
|
27
|
+
# Integration Pattern:
|
|
28
|
+
# 1. Orchestrator receives workflow request
|
|
29
|
+
# 2. Uses agent-router to discover capable worker agents
|
|
30
|
+
# 3. Delegates workflow steps to appropriate workers
|
|
31
|
+
# 4. Aggregates results and returns unified response
|
|
32
|
+
# ============================================================================
|
|
33
|
+
|
|
34
|
+
openapi: 3.1.0
|
|
35
|
+
|
|
36
|
+
# ============================================================================
|
|
37
|
+
# API METADATA: Basic information about this API
|
|
38
|
+
# ============================================================================
|
|
39
|
+
info:
|
|
40
|
+
title: Multi-Agent Orchestrator API
|
|
41
|
+
version: 1.0.0
|
|
42
|
+
description: |
|
|
43
|
+
Orchestrator agent that coordinates multiple worker agents to complete complex workflows.
|
|
44
|
+
Demonstrates advanced OSSA extensions for multi-agent coordination.
|
|
45
|
+
|
|
46
|
+
Features:
|
|
47
|
+
- Dynamic agent discovery and routing
|
|
48
|
+
- Parallel and sequential workflow execution
|
|
49
|
+
- Automatic retry and compensation handling
|
|
50
|
+
- Real-time workflow status tracking
|
|
51
|
+
- Cost and performance constraints enforcement
|
|
52
|
+
|
|
53
|
+
Architecture:
|
|
54
|
+
- Orchestrator coordinates worker agents via agent-router
|
|
55
|
+
- Worker agents registered in agent-mesh
|
|
56
|
+
- Workflow state tracked in workflow-engine
|
|
57
|
+
- All communication over secure, authenticated channels
|
|
58
|
+
|
|
59
|
+
# ============================================================================
|
|
60
|
+
# x-ossa-metadata: Top-level OSSA compliance and governance metadata
|
|
61
|
+
# ============================================================================
|
|
62
|
+
# This extension provides organizational governance information and
|
|
63
|
+
# compliance requirements that apply to the entire API
|
|
64
|
+
x-ossa-metadata:
|
|
65
|
+
# OSSA specification version this API conforms to
|
|
66
|
+
version: 0.2.2
|
|
67
|
+
|
|
68
|
+
# Compliance level and frameworks this API adheres to
|
|
69
|
+
compliance:
|
|
70
|
+
# enterprise: Full compliance with all OSSA enterprise requirements
|
|
71
|
+
# - Comprehensive security, monitoring, and governance
|
|
72
|
+
# - Production-ready with SLAs and support
|
|
73
|
+
level: enterprise
|
|
74
|
+
|
|
75
|
+
# Frameworks this API complies with
|
|
76
|
+
frameworks:
|
|
77
|
+
- OSSA # OSSA agent specification
|
|
78
|
+
- OpenAPI 3.1 # OpenAPI 3.1.0 specification
|
|
79
|
+
- RFC7807 # Problem Details for HTTP APIs
|
|
80
|
+
|
|
81
|
+
# Governance: Approval and authorization metadata
|
|
82
|
+
governance:
|
|
83
|
+
# Whether this API has been approved for production use
|
|
84
|
+
approved: true
|
|
85
|
+
|
|
86
|
+
# Team or individual who approved this API
|
|
87
|
+
approvedBy: Platform Team
|
|
88
|
+
|
|
89
|
+
# Date of approval (ISO 8601 format)
|
|
90
|
+
approvalDate: "2024-01-15"
|
|
91
|
+
|
|
92
|
+
# Security: Classification and requirements
|
|
93
|
+
security:
|
|
94
|
+
# Data classification level (public/internal/confidential/secret)
|
|
95
|
+
# - internal: Company-internal use only, no external access
|
|
96
|
+
classification: internal
|
|
97
|
+
|
|
98
|
+
# Authentication required for all endpoints
|
|
99
|
+
authentication: required
|
|
100
|
+
|
|
101
|
+
# TLS 1.3 required for all connections
|
|
102
|
+
encryption: tls1.3
|
|
103
|
+
|
|
104
|
+
# Observability: Monitoring and tracing configuration
|
|
105
|
+
observability:
|
|
106
|
+
# Enable distributed tracing (OpenTelemetry)
|
|
107
|
+
tracing: true
|
|
108
|
+
|
|
109
|
+
# Enable metrics collection (Prometheus)
|
|
110
|
+
metrics: true
|
|
111
|
+
|
|
112
|
+
# Enable structured logging (JSON format)
|
|
113
|
+
logging: true
|
|
114
|
+
|
|
115
|
+
# ============================================================================
|
|
116
|
+
# x-ossa: Agent identity and OSSA-specific configuration
|
|
117
|
+
# ============================================================================
|
|
118
|
+
# This extension identifies the agent and its OSSA compliance status
|
|
119
|
+
x-ossa:
|
|
120
|
+
# OSSA specification version
|
|
121
|
+
version: 0.2.2
|
|
122
|
+
|
|
123
|
+
# Agent identity and type
|
|
124
|
+
agent:
|
|
125
|
+
# Unique identifier for this agent (must match manifest)
|
|
126
|
+
id: workflow-orchestrator
|
|
127
|
+
|
|
128
|
+
# Agent type determines its role in the ecosystem
|
|
129
|
+
# - orchestrator: Coordinates other agents
|
|
130
|
+
# - worker: Performs delegated tasks
|
|
131
|
+
# - specialist: Domain-specific expertise
|
|
132
|
+
type: orchestrator
|
|
133
|
+
|
|
134
|
+
# Compliance standards this agent follows
|
|
135
|
+
compliance:
|
|
136
|
+
standards:
|
|
137
|
+
- openapi-first # API specification drives implementation
|
|
138
|
+
- dry # Don't Repeat Yourself - reusable components
|
|
139
|
+
- crud # Consistent Create, Read, Update, Delete patterns
|
|
140
|
+
- solid # SOLID design principles (OOP best practices)
|
|
141
|
+
- type-safe # Strong typing in requests/responses
|
|
142
|
+
|
|
143
|
+
# Whether this agent has been validated against OSSA spec
|
|
144
|
+
validated: true
|
|
145
|
+
|
|
146
|
+
# Timestamp of last validation (ISO 8601 format)
|
|
147
|
+
validatedAt: "2024-01-15T10:30:00Z"
|
|
148
|
+
|
|
149
|
+
# ============================================================================
|
|
150
|
+
# x-agent: Agent-specific capabilities, tools, and operational rules
|
|
151
|
+
# ============================================================================
|
|
152
|
+
# This extension defines what the agent can do and how it operates
|
|
153
|
+
x-agent:
|
|
154
|
+
# Capabilities: High-level functions this agent provides
|
|
155
|
+
capabilities:
|
|
156
|
+
- workflow-execution # Execute multi-step workflows
|
|
157
|
+
- agent-coordination # Discover and manage worker agents
|
|
158
|
+
- task-delegation # Delegate workflow steps to workers
|
|
159
|
+
- result-aggregation # Combine results from multiple agents
|
|
160
|
+
|
|
161
|
+
# Tools: External systems this agent integrates with (MCP servers)
|
|
162
|
+
tools:
|
|
163
|
+
- agent-router # Service discovery and routing for agents
|
|
164
|
+
- agent-mesh # Agent communication and coordination
|
|
165
|
+
- workflow-engine # Workflow state management and execution
|
|
166
|
+
|
|
167
|
+
# Environment: Runtime configuration and limits
|
|
168
|
+
environment:
|
|
169
|
+
# Maximum worker agents that can be coordinated simultaneously
|
|
170
|
+
# - Prevents resource exhaustion and coordination overhead
|
|
171
|
+
maxConcurrentAgents: 10
|
|
172
|
+
|
|
173
|
+
# Default timeout (seconds) for workflow execution
|
|
174
|
+
# - Individual steps may have their own timeouts
|
|
175
|
+
defaultTimeout: 300
|
|
176
|
+
|
|
177
|
+
# Rules: Operational policies this agent must follow
|
|
178
|
+
rules:
|
|
179
|
+
# Validate all task delegations before sending to workers
|
|
180
|
+
# - Ensures workers have required capabilities
|
|
181
|
+
# - Prevents invalid requests and wasted resources
|
|
182
|
+
- validate-all-delegations
|
|
183
|
+
|
|
184
|
+
# Critical workflows require human approval before execution
|
|
185
|
+
# - Workflows marked priority: critical
|
|
186
|
+
# - Prevents automated execution of high-risk operations
|
|
187
|
+
- require-approval-for-critical-workflows
|
|
188
|
+
|
|
189
|
+
# Audit all coordination activities for compliance
|
|
190
|
+
# - Log all agent discoveries, delegations, and results
|
|
191
|
+
# - Enables troubleshooting and compliance reporting
|
|
192
|
+
- audit-all-coordinations
|
|
193
|
+
|
|
194
|
+
# ============================================================================
|
|
195
|
+
# COMPONENTS: Reusable schemas, parameters, and responses
|
|
196
|
+
# ============================================================================
|
|
197
|
+
components:
|
|
198
|
+
schemas:
|
|
199
|
+
# ========================================================================
|
|
200
|
+
# WorkflowRequest: Client submits workflow to orchestrator
|
|
201
|
+
# ========================================================================
|
|
202
|
+
WorkflowRequest:
|
|
203
|
+
type: object
|
|
204
|
+
required:
|
|
205
|
+
- workflowId # Required for idempotency and status tracking
|
|
206
|
+
- steps # At least one step must be defined
|
|
207
|
+
properties:
|
|
208
|
+
# Unique workflow identifier for tracking and idempotency
|
|
209
|
+
# - Client generates UUID to prevent duplicate submissions
|
|
210
|
+
# - Used to query workflow status via GET /workflows/{workflowId}
|
|
211
|
+
workflowId:
|
|
212
|
+
type: string
|
|
213
|
+
description: Unique workflow identifier
|
|
214
|
+
|
|
215
|
+
# Array of workflow steps to execute
|
|
216
|
+
# - Steps can be executed sequentially or in parallel
|
|
217
|
+
# - Orchestrator determines execution order based on dependencies
|
|
218
|
+
steps:
|
|
219
|
+
type: array
|
|
220
|
+
items:
|
|
221
|
+
type: object
|
|
222
|
+
properties:
|
|
223
|
+
# Unique step identifier within this workflow
|
|
224
|
+
# - Used for dependency tracking (e.g., step2 depends on step1)
|
|
225
|
+
stepId:
|
|
226
|
+
type: string
|
|
227
|
+
|
|
228
|
+
# Type of agent required for this step
|
|
229
|
+
# - worker: General-purpose task execution
|
|
230
|
+
# - specialist: Domain-specific expertise (e.g., code review, security)
|
|
231
|
+
# - critic: Validation and quality assurance
|
|
232
|
+
agentType:
|
|
233
|
+
type: string
|
|
234
|
+
enum:
|
|
235
|
+
- worker
|
|
236
|
+
- specialist
|
|
237
|
+
- critic
|
|
238
|
+
|
|
239
|
+
# Required capability for this step
|
|
240
|
+
# - Used by agent-router to find suitable agents
|
|
241
|
+
# - Example: "sentiment_analysis", "code_review", "vulnerability_scan"
|
|
242
|
+
capability:
|
|
243
|
+
type: string
|
|
244
|
+
|
|
245
|
+
# Input data for this workflow step
|
|
246
|
+
# - Passed to the worker agent's capability function
|
|
247
|
+
# - Schema validated by worker agent
|
|
248
|
+
# - Can reference outputs from previous steps
|
|
249
|
+
input:
|
|
250
|
+
type: object
|
|
251
|
+
additionalProperties: true
|
|
252
|
+
|
|
253
|
+
# Workflow priority affects scheduling and resource allocation
|
|
254
|
+
# - critical: Requires approval, highest priority, dedicated resources
|
|
255
|
+
# - high: Fast-tracked execution, priority over normal/low
|
|
256
|
+
# - normal: Standard execution (default)
|
|
257
|
+
# - low: Best-effort execution, can be preempted
|
|
258
|
+
priority:
|
|
259
|
+
type: string
|
|
260
|
+
enum:
|
|
261
|
+
- low
|
|
262
|
+
- normal
|
|
263
|
+
- high
|
|
264
|
+
- critical
|
|
265
|
+
default: normal
|
|
266
|
+
|
|
267
|
+
# ========================================================================
|
|
268
|
+
# WorkflowResponse: Orchestrator returns workflow status and results
|
|
269
|
+
# ========================================================================
|
|
270
|
+
WorkflowResponse:
|
|
271
|
+
type: object
|
|
272
|
+
properties:
|
|
273
|
+
# Workflow identifier from request (for correlation)
|
|
274
|
+
workflowId:
|
|
275
|
+
type: string
|
|
276
|
+
|
|
277
|
+
# Overall workflow status
|
|
278
|
+
# - pending: Workflow accepted but not yet started
|
|
279
|
+
# - running: At least one step is executing
|
|
280
|
+
# - completed: All steps completed successfully
|
|
281
|
+
# - failed: At least one step failed (check steps for details)
|
|
282
|
+
status:
|
|
283
|
+
type: string
|
|
284
|
+
enum:
|
|
285
|
+
- pending
|
|
286
|
+
- running
|
|
287
|
+
- completed
|
|
288
|
+
- failed
|
|
289
|
+
|
|
290
|
+
# Status and results for each workflow step
|
|
291
|
+
steps:
|
|
292
|
+
type: array
|
|
293
|
+
items:
|
|
294
|
+
type: object
|
|
295
|
+
properties:
|
|
296
|
+
# Step identifier from request
|
|
297
|
+
stepId:
|
|
298
|
+
type: string
|
|
299
|
+
|
|
300
|
+
# Step execution status
|
|
301
|
+
# - Same values as workflow status
|
|
302
|
+
# - Individual step status drives overall workflow status
|
|
303
|
+
status:
|
|
304
|
+
type: string
|
|
305
|
+
|
|
306
|
+
# ID of the agent that executed this step
|
|
307
|
+
# - Used for debugging and performance analysis
|
|
308
|
+
# - Retrieved from agent-router based on capability
|
|
309
|
+
agentId:
|
|
310
|
+
type: string
|
|
311
|
+
|
|
312
|
+
# Output from worker agent's capability function
|
|
313
|
+
# - Schema defined by worker agent
|
|
314
|
+
# - Can be used as input to subsequent steps
|
|
315
|
+
result:
|
|
316
|
+
type: object
|
|
317
|
+
additionalProperties: true
|
|
318
|
+
|
|
319
|
+
# Combined results from all workflow steps
|
|
320
|
+
# - Orchestrator aggregates individual step results
|
|
321
|
+
# - Structure depends on workflow type and logic
|
|
322
|
+
# - Example: Combined sentiment scores, merged analysis reports
|
|
323
|
+
aggregatedResult:
|
|
324
|
+
type: object
|
|
325
|
+
additionalProperties: true
|
|
326
|
+
|
|
327
|
+
# ============================================================================
|
|
328
|
+
# PATHS: API endpoints for workflow orchestration
|
|
329
|
+
# ============================================================================
|
|
330
|
+
paths:
|
|
331
|
+
# ==========================================================================
|
|
332
|
+
# POST /api/v1/workflows/execute: Submit workflow for execution
|
|
333
|
+
# ==========================================================================
|
|
334
|
+
/api/v1/workflows/execute:
|
|
335
|
+
post:
|
|
336
|
+
summary: Execute multi-agent workflow
|
|
337
|
+
description: |
|
|
338
|
+
Coordinates multiple agents to execute a complex workflow.
|
|
339
|
+
Each step can be delegated to different agents based on their capabilities.
|
|
340
|
+
|
|
341
|
+
Workflow Execution Process:
|
|
342
|
+
1. Orchestrator validates workflow request
|
|
343
|
+
2. Uses agent-router to discover agents with required capabilities
|
|
344
|
+
3. Delegates workflow steps to worker agents (parallel or sequential)
|
|
345
|
+
4. Monitors execution and handles failures (retry/compensation)
|
|
346
|
+
5. Aggregates results from all steps
|
|
347
|
+
6. Returns unified response
|
|
348
|
+
|
|
349
|
+
Agent Discovery:
|
|
350
|
+
- Agent-router queries agent-mesh for agents with matching capabilities
|
|
351
|
+
- Health checks ensure only healthy agents receive tasks
|
|
352
|
+
- Load balancing distributes work across available agents
|
|
353
|
+
|
|
354
|
+
Failure Handling:
|
|
355
|
+
- Retry with exponential backoff (up to 3 attempts)
|
|
356
|
+
- Compensation actions for saga pattern
|
|
357
|
+
- Fallback workflows for critical operations
|
|
358
|
+
operationId: executeWorkflow
|
|
359
|
+
tags:
|
|
360
|
+
- Orchestration
|
|
361
|
+
|
|
362
|
+
# ======================================================================
|
|
363
|
+
# x-ossa-capability: Maps endpoint to agent capability
|
|
364
|
+
# ======================================================================
|
|
365
|
+
# Enables capability-based routing and authorization
|
|
366
|
+
x-ossa-capability:
|
|
367
|
+
name: workflow-execution
|
|
368
|
+
description: Execute multi-agent workflow with task delegation
|
|
369
|
+
|
|
370
|
+
# ======================================================================
|
|
371
|
+
# x-ossa-autonomy: Defines autonomy level and action permissions
|
|
372
|
+
# ======================================================================
|
|
373
|
+
# Controls what the agent can do without human approval
|
|
374
|
+
x-ossa-autonomy:
|
|
375
|
+
# Autonomy levels:
|
|
376
|
+
# - autonomous: Full self-direction, no approval needed
|
|
377
|
+
# - semi-autonomous: Can execute but not modify system (this level)
|
|
378
|
+
# - supervised: Human approval required for all actions
|
|
379
|
+
level: semi-autonomous
|
|
380
|
+
|
|
381
|
+
# Approval required before execution (false for normal priority)
|
|
382
|
+
# - Set to true for critical priority workflows (via rules)
|
|
383
|
+
approval_required: false
|
|
384
|
+
|
|
385
|
+
# Actions this endpoint is permitted to perform
|
|
386
|
+
allowed_actions:
|
|
387
|
+
- delegate_tasks # Send tasks to worker agents
|
|
388
|
+
- aggregate_results # Combine outputs from multiple agents
|
|
389
|
+
- coordinate_agents # Discover and communicate with agents
|
|
390
|
+
|
|
391
|
+
# Actions explicitly blocked for safety
|
|
392
|
+
blocked_actions:
|
|
393
|
+
- modify_agent_configs # Cannot change agent configurations
|
|
394
|
+
- delete_agents # Cannot remove agents from system
|
|
395
|
+
|
|
396
|
+
# ======================================================================
|
|
397
|
+
# x-ossa-constraints: Resource and performance limits
|
|
398
|
+
# ======================================================================
|
|
399
|
+
# Enforces cost, performance, and time budgets
|
|
400
|
+
x-ossa-constraints:
|
|
401
|
+
# Cost constraints: Prevent runaway token/cost usage
|
|
402
|
+
cost:
|
|
403
|
+
# Maximum tokens per 24-hour period (all workflows)
|
|
404
|
+
maxTokensPerDay: 200000
|
|
405
|
+
|
|
406
|
+
# Maximum tokens per single workflow execution
|
|
407
|
+
maxTokensPerRequest: 10000
|
|
408
|
+
|
|
409
|
+
# Maximum dollar cost per 24-hour period
|
|
410
|
+
maxCostPerDay: 50.0
|
|
411
|
+
|
|
412
|
+
# Currency for cost calculations
|
|
413
|
+
currency: USD
|
|
414
|
+
|
|
415
|
+
# Performance constraints: Ensure responsiveness
|
|
416
|
+
performance:
|
|
417
|
+
# Maximum end-to-end latency (seconds) before timeout
|
|
418
|
+
# - 600 seconds = 10 minutes (should include retries)
|
|
419
|
+
maxLatencySeconds: 600
|
|
420
|
+
|
|
421
|
+
# Maximum concurrent workflow executions
|
|
422
|
+
# - Limits orchestrator load and agent contention
|
|
423
|
+
maxConcurrentRequests: 3
|
|
424
|
+
|
|
425
|
+
# Time constraints: Prevent long-running workflows
|
|
426
|
+
time:
|
|
427
|
+
# Maximum execution time (seconds) per workflow
|
|
428
|
+
# - 1800 seconds = 30 minutes
|
|
429
|
+
# - Includes all steps, retries, and compensation
|
|
430
|
+
maxExecutionTime: 1800
|
|
431
|
+
|
|
432
|
+
# ======================================================================
|
|
433
|
+
# x-ossa-tools: MCP servers for agent coordination
|
|
434
|
+
# ======================================================================
|
|
435
|
+
# Defines external tools (MCP servers) this endpoint uses
|
|
436
|
+
x-ossa-tools:
|
|
437
|
+
# Agent Router: Service discovery and request routing
|
|
438
|
+
- type: mcp
|
|
439
|
+
server: agent-router
|
|
440
|
+
capabilities:
|
|
441
|
+
# Find agents matching capability requirements
|
|
442
|
+
- find_agent
|
|
443
|
+
# Route requests to selected agents
|
|
444
|
+
- route_request
|
|
445
|
+
|
|
446
|
+
# Agent Mesh: Agent communication and coordination
|
|
447
|
+
- type: mcp
|
|
448
|
+
server: agent-mesh
|
|
449
|
+
capabilities:
|
|
450
|
+
# Coordinate multiple agents in a workflow
|
|
451
|
+
- coordinate_agents
|
|
452
|
+
# Send messages to all agents (e.g., cancel workflow)
|
|
453
|
+
- broadcast_message
|
|
454
|
+
|
|
455
|
+
# Workflow Engine: Workflow state management
|
|
456
|
+
- type: mcp
|
|
457
|
+
server: workflow-engine
|
|
458
|
+
capabilities:
|
|
459
|
+
# Execute workflow definition (steps, dependencies, retries)
|
|
460
|
+
- execute_workflow
|
|
461
|
+
# Track workflow progress and state transitions
|
|
462
|
+
- track_progress
|
|
463
|
+
|
|
464
|
+
# ======================================================================
|
|
465
|
+
# x-ossa-llm: LLM configuration for intelligent orchestration
|
|
466
|
+
# ======================================================================
|
|
467
|
+
# LLM used for intelligent workflow decisions (optional)
|
|
468
|
+
# - Determines step execution order based on dependencies
|
|
469
|
+
# - Selects best agent when multiple candidates available
|
|
470
|
+
# - Generates compensation logic for failed steps
|
|
471
|
+
x-ossa-llm:
|
|
472
|
+
# LLM provider (openai, anthropic, azure, etc.)
|
|
473
|
+
provider: openai
|
|
474
|
+
|
|
475
|
+
# Model for orchestration decisions
|
|
476
|
+
# - GPT-4 for complex reasoning about dependencies and failures
|
|
477
|
+
model: gpt-4
|
|
478
|
+
|
|
479
|
+
# Low temperature for deterministic orchestration
|
|
480
|
+
# - Prevents random variations in workflow execution
|
|
481
|
+
temperature: 0.1
|
|
482
|
+
|
|
483
|
+
# Maximum tokens for LLM responses
|
|
484
|
+
# - Orchestration decisions should be concise
|
|
485
|
+
maxTokens: 8000
|
|
486
|
+
|
|
487
|
+
# ======================================================================
|
|
488
|
+
# Request/Response Definitions
|
|
489
|
+
# ======================================================================
|
|
490
|
+
requestBody:
|
|
491
|
+
required: true
|
|
492
|
+
content:
|
|
493
|
+
application/json:
|
|
494
|
+
schema:
|
|
495
|
+
$ref: "#/components/schemas/WorkflowRequest"
|
|
496
|
+
|
|
497
|
+
responses:
|
|
498
|
+
# 202 Accepted: Workflow accepted and execution started
|
|
499
|
+
# - Asynchronous execution (use GET /workflows/{id} for status)
|
|
500
|
+
'202':
|
|
501
|
+
description: Workflow execution started
|
|
502
|
+
content:
|
|
503
|
+
application/json:
|
|
504
|
+
schema:
|
|
505
|
+
$ref: "#/components/schemas/WorkflowResponse"
|
|
506
|
+
|
|
507
|
+
# 400 Bad Request: Invalid workflow specification
|
|
508
|
+
# - Missing required fields
|
|
509
|
+
# - Invalid step definitions
|
|
510
|
+
# - Unknown agent types or capabilities
|
|
511
|
+
'400':
|
|
512
|
+
description: Invalid workflow request
|
|
513
|
+
|
|
514
|
+
# 403 Forbidden: Workflow requires approval
|
|
515
|
+
# - Priority is "critical" and requires human approval
|
|
516
|
+
# - Blocked by operational rules
|
|
517
|
+
'403':
|
|
518
|
+
description: Workflow requires approval
|
|
519
|
+
|
|
520
|
+
# ==========================================================================
|
|
521
|
+
# GET /api/v1/workflows/{workflowId}: Query workflow status
|
|
522
|
+
# ==========================================================================
|
|
523
|
+
/api/v1/workflows/{workflowId}:
|
|
524
|
+
get:
|
|
525
|
+
summary: Get workflow status
|
|
526
|
+
description: |
|
|
527
|
+
Retrieve the current status of a workflow execution.
|
|
528
|
+
|
|
529
|
+
Use Cases:
|
|
530
|
+
- Poll for workflow completion after POST /workflows/execute
|
|
531
|
+
- Monitor workflow progress in real-time
|
|
532
|
+
- Retrieve results after workflow completion
|
|
533
|
+
- Debug failed workflows (view step-by-step status)
|
|
534
|
+
|
|
535
|
+
Response Details:
|
|
536
|
+
- Status: pending/running/completed/failed
|
|
537
|
+
- Steps: Individual step status and results
|
|
538
|
+
- AggregatedResult: Combined output from all steps
|
|
539
|
+
operationId: getWorkflowStatus
|
|
540
|
+
tags:
|
|
541
|
+
- Orchestration
|
|
542
|
+
|
|
543
|
+
# ======================================================================
|
|
544
|
+
# x-ossa-capability: Maps endpoint to agent capability
|
|
545
|
+
# ======================================================================
|
|
546
|
+
x-ossa-capability:
|
|
547
|
+
name: workflow-execution
|
|
548
|
+
description: Query workflow execution status
|
|
549
|
+
|
|
550
|
+
# ======================================================================
|
|
551
|
+
# x-ossa-autonomy: Fully autonomous read-only operation
|
|
552
|
+
# ======================================================================
|
|
553
|
+
# Read-only operations are typically autonomous (no approval needed)
|
|
554
|
+
x-ossa-autonomy:
|
|
555
|
+
# autonomous: No approval needed for read operations
|
|
556
|
+
level: autonomous
|
|
557
|
+
|
|
558
|
+
# No approval required for status queries
|
|
559
|
+
approval_required: false
|
|
560
|
+
|
|
561
|
+
# ======================================================================
|
|
562
|
+
# Request Parameters
|
|
563
|
+
# ======================================================================
|
|
564
|
+
parameters:
|
|
565
|
+
# Workflow ID from POST /workflows/execute response
|
|
566
|
+
- name: workflowId
|
|
567
|
+
in: path
|
|
568
|
+
required: true
|
|
569
|
+
schema:
|
|
570
|
+
type: string
|
|
571
|
+
description: Unique workflow identifier from submission
|
|
572
|
+
|
|
573
|
+
# ======================================================================
|
|
574
|
+
# Response Definitions
|
|
575
|
+
# ======================================================================
|
|
576
|
+
responses:
|
|
577
|
+
# 200 OK: Workflow found and status returned
|
|
578
|
+
'200':
|
|
579
|
+
description: Workflow status
|
|
580
|
+
content:
|
|
581
|
+
application/json:
|
|
582
|
+
schema:
|
|
583
|
+
$ref: "#/components/schemas/WorkflowResponse"
|
|
584
|
+
|
|
585
|
+
# 404 Not Found: Workflow ID does not exist
|
|
586
|
+
# - Workflow never submitted
|
|
587
|
+
# - Workflow ID expired (retention policy)
|
|
588
|
+
# - Typo in workflow ID
|
|
589
|
+
'404':
|
|
590
|
+
description: Workflow not found
|
|
591
|
+
|
|
592
|
+
# ============================================================================
|
|
593
|
+
# END OF SPECIFICATION
|
|
594
|
+
# ============================================================================
|
|
595
|
+
# Usage Examples:
|
|
596
|
+
#
|
|
597
|
+
# 1. Submit workflow:
|
|
598
|
+
# POST /api/v1/workflows/execute
|
|
599
|
+
# {
|
|
600
|
+
# "workflowId": "wf-123",
|
|
601
|
+
# "steps": [
|
|
602
|
+
# {
|
|
603
|
+
# "stepId": "step1",
|
|
604
|
+
# "agentType": "worker",
|
|
605
|
+
# "capability": "sentiment_analysis",
|
|
606
|
+
# "input": {"text": "This is great!"}
|
|
607
|
+
# }
|
|
608
|
+
# ],
|
|
609
|
+
# "priority": "normal"
|
|
610
|
+
# }
|
|
611
|
+
#
|
|
612
|
+
# 2. Check status:
|
|
613
|
+
# GET /api/v1/workflows/wf-123
|
|
614
|
+
#
|
|
615
|
+
# 3. Monitor until completed:
|
|
616
|
+
# while (status === "pending" || status === "running") {
|
|
617
|
+
# await sleep(1000);
|
|
618
|
+
# status = await GET /api/v1/workflows/wf-123;
|
|
619
|
+
# }
|
|
620
|
+
#
|
|
621
|
+
# Related Documentation:
|
|
622
|
+
# - OSSA Spec: https://ossa.ai/spec
|
|
623
|
+
# - OpenAPI Extensions: https://ossa.ai/docs/openapi-extensions
|
|
624
|
+
# - Agent Coordination: https://ossa.ai/docs/orchestration
|
|
625
|
+
# - MCP Integration: https://modelcontextprotocol.io
|
|
626
|
+
#
|
|
627
|
+
# Agent Ecosystem:
|
|
628
|
+
# - This orchestrator coordinates worker agents
|
|
629
|
+
# - Worker agents register capabilities in agent-mesh
|
|
630
|
+
# - Agent-router discovers and routes to workers
|
|
631
|
+
# - Workflow-engine manages state and retries
|
|
632
|
+
# ============================================================================
|
|
633
|
+
|