@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,263 @@
|
|
|
1
|
+
# Example: ADK Customer Support System with OSSA Agents
|
|
2
|
+
# Demonstrates Coordinator and Dispatcher patterns
|
|
3
|
+
|
|
4
|
+
apiVersion: '@ossa/v0.1.9'
|
|
5
|
+
kind: Workflow
|
|
6
|
+
metadata:
|
|
7
|
+
name: customer-support-system
|
|
8
|
+
description: 'Multi-agent customer support with intelligent routing'
|
|
9
|
+
|
|
10
|
+
spec:
|
|
11
|
+
# ADK Coordinator pattern for complex support tasks
|
|
12
|
+
adk_pattern: coordinator
|
|
13
|
+
|
|
14
|
+
agents:
|
|
15
|
+
# Coordinator agent
|
|
16
|
+
- name: support-coordinator
|
|
17
|
+
type: LlmAgent
|
|
18
|
+
ossa_type: orchestrator
|
|
19
|
+
model: gemini-2.0-pro
|
|
20
|
+
instruction: |
|
|
21
|
+
Analyze customer request and determine:
|
|
22
|
+
1. Request type (billing, technical, product, complaint)
|
|
23
|
+
2. Urgency level (low, medium, high, critical)
|
|
24
|
+
3. Required specialists
|
|
25
|
+
4. Delegation strategy
|
|
26
|
+
|
|
27
|
+
Route to appropriate agents based on analysis.
|
|
28
|
+
Store routing decision in {routing_plan}
|
|
29
|
+
output_key: routing_plan
|
|
30
|
+
capabilities:
|
|
31
|
+
- request-analysis
|
|
32
|
+
- intent-classification
|
|
33
|
+
- routing-decision
|
|
34
|
+
|
|
35
|
+
# Specialist agents
|
|
36
|
+
- name: billing-specialist
|
|
37
|
+
type: LlmAgent
|
|
38
|
+
ossa_type: worker
|
|
39
|
+
instruction: |
|
|
40
|
+
Handle billing-related inquiries:
|
|
41
|
+
- Payment issues
|
|
42
|
+
- Subscription changes
|
|
43
|
+
- Refund requests
|
|
44
|
+
- Invoice questions
|
|
45
|
+
|
|
46
|
+
Use {routing_plan} context
|
|
47
|
+
Store response in {billing_response}
|
|
48
|
+
output_key: billing_response
|
|
49
|
+
tools:
|
|
50
|
+
- database_query
|
|
51
|
+
- api_call
|
|
52
|
+
capabilities:
|
|
53
|
+
- billing-operations
|
|
54
|
+
- payment-processing
|
|
55
|
+
|
|
56
|
+
- name: technical-specialist
|
|
57
|
+
type: LlmAgent
|
|
58
|
+
ossa_type: worker
|
|
59
|
+
instruction: |
|
|
60
|
+
Resolve technical issues:
|
|
61
|
+
- Bug reports
|
|
62
|
+
- Feature questions
|
|
63
|
+
- Integration problems
|
|
64
|
+
- Performance issues
|
|
65
|
+
|
|
66
|
+
Reference {routing_plan} for context
|
|
67
|
+
Store solution in {technical_response}
|
|
68
|
+
output_key: technical_response
|
|
69
|
+
tools:
|
|
70
|
+
- api_call
|
|
71
|
+
- database_query
|
|
72
|
+
capabilities:
|
|
73
|
+
- technical-support
|
|
74
|
+
- troubleshooting
|
|
75
|
+
|
|
76
|
+
- name: product-specialist
|
|
77
|
+
type: LlmAgent
|
|
78
|
+
ossa_type: worker
|
|
79
|
+
instruction: |
|
|
80
|
+
Answer product questions:
|
|
81
|
+
- Feature explanations
|
|
82
|
+
- Best practices
|
|
83
|
+
- Use case guidance
|
|
84
|
+
- Product recommendations
|
|
85
|
+
|
|
86
|
+
Use {routing_plan} guidance
|
|
87
|
+
Store answer in {product_response}
|
|
88
|
+
output_key: product_response
|
|
89
|
+
capabilities:
|
|
90
|
+
- product-knowledge
|
|
91
|
+
- recommendation-engine
|
|
92
|
+
|
|
93
|
+
- name: escalation-handler
|
|
94
|
+
type: CustomAgent
|
|
95
|
+
custom_type: specialized
|
|
96
|
+
ossa_type: worker
|
|
97
|
+
instruction: |
|
|
98
|
+
Handle escalated issues:
|
|
99
|
+
- Complaints
|
|
100
|
+
- Complex problems
|
|
101
|
+
- VIP customers
|
|
102
|
+
- Legal matters
|
|
103
|
+
|
|
104
|
+
Review all previous responses
|
|
105
|
+
Store resolution in {escalation_response}
|
|
106
|
+
output_key: escalation_response
|
|
107
|
+
capabilities:
|
|
108
|
+
- escalation-management
|
|
109
|
+
- conflict-resolution
|
|
110
|
+
|
|
111
|
+
# Response aggregator
|
|
112
|
+
- name: response-synthesizer
|
|
113
|
+
type: WorkflowAgent
|
|
114
|
+
workflow_type: parallel
|
|
115
|
+
ossa_type: orchestrator
|
|
116
|
+
instruction: |
|
|
117
|
+
Synthesize all specialist responses:
|
|
118
|
+
- {billing_response}
|
|
119
|
+
- {technical_response}
|
|
120
|
+
- {product_response}
|
|
121
|
+
- {escalation_response}
|
|
122
|
+
|
|
123
|
+
Create unified customer response
|
|
124
|
+
Store in {final_response}
|
|
125
|
+
output_key: final_response
|
|
126
|
+
sub_agents:
|
|
127
|
+
- billing-specialist
|
|
128
|
+
- technical-specialist
|
|
129
|
+
- product-specialist
|
|
130
|
+
- escalation-handler
|
|
131
|
+
|
|
132
|
+
# Dispatcher configuration for routing
|
|
133
|
+
dispatcher_config:
|
|
134
|
+
routing_rules:
|
|
135
|
+
- pattern: 'billing|payment|invoice|refund'
|
|
136
|
+
agent: billing-specialist
|
|
137
|
+
priority: high
|
|
138
|
+
|
|
139
|
+
- pattern: 'bug|error|crash|slow|broken'
|
|
140
|
+
agent: technical-specialist
|
|
141
|
+
priority: critical
|
|
142
|
+
|
|
143
|
+
- pattern: 'how to|feature|can I|what is'
|
|
144
|
+
agent: product-specialist
|
|
145
|
+
priority: medium
|
|
146
|
+
|
|
147
|
+
- pattern: 'complaint|angry|frustrated|cancel'
|
|
148
|
+
agent: escalation-handler
|
|
149
|
+
priority: critical
|
|
150
|
+
|
|
151
|
+
fallback_agent: support-coordinator
|
|
152
|
+
|
|
153
|
+
# LLM-driven routing when rules don't match
|
|
154
|
+
llm_routing:
|
|
155
|
+
enabled: true
|
|
156
|
+
model: gemini-2.0-flash
|
|
157
|
+
instruction: |
|
|
158
|
+
Analyze request and select best agent:
|
|
159
|
+
- Consider request content
|
|
160
|
+
- Check customer history
|
|
161
|
+
- Evaluate urgency
|
|
162
|
+
- Match agent capabilities
|
|
163
|
+
|
|
164
|
+
# Coordination strategies
|
|
165
|
+
coordination:
|
|
166
|
+
strategy: adaptive # Changes based on request type
|
|
167
|
+
|
|
168
|
+
patterns:
|
|
169
|
+
simple_request:
|
|
170
|
+
pattern: dispatcher
|
|
171
|
+
condition: "session.state.routing_plan.complexity === 'simple'"
|
|
172
|
+
|
|
173
|
+
complex_request:
|
|
174
|
+
pattern: coordinator
|
|
175
|
+
condition: "session.state.routing_plan.complexity === 'complex'"
|
|
176
|
+
|
|
177
|
+
multi_issue:
|
|
178
|
+
pattern: parallel
|
|
179
|
+
condition: 'session.state.routing_plan.issue_count > 1'
|
|
180
|
+
|
|
181
|
+
escalated:
|
|
182
|
+
pattern: sequential
|
|
183
|
+
condition: 'session.state.routing_plan.requires_escalation === true'
|
|
184
|
+
|
|
185
|
+
# ADK communication patterns
|
|
186
|
+
communication:
|
|
187
|
+
# Shared session state
|
|
188
|
+
shared_state:
|
|
189
|
+
- customer_id
|
|
190
|
+
- request_history
|
|
191
|
+
- routing_plan
|
|
192
|
+
- urgency_level
|
|
193
|
+
- sentiment_score
|
|
194
|
+
|
|
195
|
+
# Agent handoff
|
|
196
|
+
handoff_config:
|
|
197
|
+
preserve_context: true
|
|
198
|
+
transfer_method: state_based # Via session.state
|
|
199
|
+
handoff_message: |
|
|
200
|
+
Transferring to {target_agent} because:
|
|
201
|
+
{handoff_reason}
|
|
202
|
+
|
|
203
|
+
# Callback mechanisms
|
|
204
|
+
callbacks:
|
|
205
|
+
on_routing_complete: log_routing_decision
|
|
206
|
+
on_response_ready: notify_customer
|
|
207
|
+
on_escalation: alert_supervisor
|
|
208
|
+
|
|
209
|
+
# Performance and optimization
|
|
210
|
+
adk_config:
|
|
211
|
+
performance:
|
|
212
|
+
# Agent pooling
|
|
213
|
+
agent_pool:
|
|
214
|
+
min_instances: 1
|
|
215
|
+
max_instances: 10
|
|
216
|
+
scale_based_on: request_volume
|
|
217
|
+
|
|
218
|
+
# Response caching
|
|
219
|
+
cache:
|
|
220
|
+
enabled: true
|
|
221
|
+
ttl: 3600
|
|
222
|
+
cache_key: 'request_hash'
|
|
223
|
+
|
|
224
|
+
# Quality assurance
|
|
225
|
+
quality:
|
|
226
|
+
# Response validation
|
|
227
|
+
validate_responses: true
|
|
228
|
+
min_confidence: 0.8
|
|
229
|
+
|
|
230
|
+
# Sentiment checking
|
|
231
|
+
check_sentiment: true
|
|
232
|
+
min_sentiment_score: 0.6
|
|
233
|
+
|
|
234
|
+
# Metrics and monitoring
|
|
235
|
+
metrics:
|
|
236
|
+
- response_time
|
|
237
|
+
- customer_satisfaction
|
|
238
|
+
- resolution_rate
|
|
239
|
+
- escalation_rate
|
|
240
|
+
- agent_utilization
|
|
241
|
+
# Example usage with different patterns:
|
|
242
|
+
#
|
|
243
|
+
# 1. Simple request (Dispatcher):
|
|
244
|
+
# const result = await adapter.executeOrchestration(
|
|
245
|
+
# 'dispatcher',
|
|
246
|
+
# ['billing-specialist', 'technical-specialist', 'product-specialist'],
|
|
247
|
+
# { request: "How do I update my payment method?" },
|
|
248
|
+
# { router: customRouter }
|
|
249
|
+
# );
|
|
250
|
+
#
|
|
251
|
+
# 2. Complex request (Coordinator):
|
|
252
|
+
# const result = await adapter.executeOrchestration(
|
|
253
|
+
# 'coordinator',
|
|
254
|
+
# ['support-coordinator', 'billing-specialist', 'technical-specialist', 'response-synthesizer'],
|
|
255
|
+
# { request: "I have billing issues and the app keeps crashing" }
|
|
256
|
+
# );
|
|
257
|
+
#
|
|
258
|
+
# 3. Escalated issue (Sequential with conditions):
|
|
259
|
+
# const result = await adapter.executeOrchestration(
|
|
260
|
+
# 'sequential',
|
|
261
|
+
# ['support-coordinator', 'technical-specialist', 'escalation-handler', 'response-synthesizer'],
|
|
262
|
+
# { request: "This is the 5th time I'm reporting this critical bug!" }
|
|
263
|
+
# );
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
# Example: ADK Data Processing Pipeline with OSSA Agents
|
|
2
|
+
# Demonstrates LoopAgent and ConditionalAgent patterns
|
|
3
|
+
|
|
4
|
+
apiVersion: '@ossa/v0.1.9'
|
|
5
|
+
kind: Workflow
|
|
6
|
+
metadata:
|
|
7
|
+
name: data-processing-pipeline
|
|
8
|
+
description: 'Iterative data processing with conditional branches'
|
|
9
|
+
|
|
10
|
+
spec:
|
|
11
|
+
# ADK Loop pattern for batch processing
|
|
12
|
+
adk_pattern: loop
|
|
13
|
+
|
|
14
|
+
agents:
|
|
15
|
+
- name: data-ingester
|
|
16
|
+
type: LlmAgent
|
|
17
|
+
ossa_type: worker
|
|
18
|
+
capabilities:
|
|
19
|
+
- data-ingestion
|
|
20
|
+
- format-conversion
|
|
21
|
+
instruction: |
|
|
22
|
+
Ingest data batch from source
|
|
23
|
+
Convert to standard format
|
|
24
|
+
Store in {raw_data}
|
|
25
|
+
Set {has_more_data} flag
|
|
26
|
+
output_key: raw_data
|
|
27
|
+
tools:
|
|
28
|
+
- api_call
|
|
29
|
+
- file_operation
|
|
30
|
+
|
|
31
|
+
- name: data-validator
|
|
32
|
+
type: LlmAgent
|
|
33
|
+
ossa_type: critic
|
|
34
|
+
capabilities:
|
|
35
|
+
- validation
|
|
36
|
+
- schema-checking
|
|
37
|
+
instruction: |
|
|
38
|
+
Validate {raw_data} against schema
|
|
39
|
+
Check data quality metrics
|
|
40
|
+
Store validation results in {validation_status}
|
|
41
|
+
Set {is_valid} flag
|
|
42
|
+
output_key: validation_status
|
|
43
|
+
|
|
44
|
+
- name: data-transformer
|
|
45
|
+
type: WorkflowAgent
|
|
46
|
+
workflow_type: conditional
|
|
47
|
+
ossa_type: orchestrator
|
|
48
|
+
instruction: |
|
|
49
|
+
Transform data based on {validation_status}:
|
|
50
|
+
- If valid: apply standard transformations
|
|
51
|
+
- If invalid: apply error corrections
|
|
52
|
+
Store in {transformed_data}
|
|
53
|
+
output_key: transformed_data
|
|
54
|
+
sub_agents:
|
|
55
|
+
- name: standard-transformer
|
|
56
|
+
condition: 'session.state.is_valid === true'
|
|
57
|
+
- name: error-corrector
|
|
58
|
+
condition: 'session.state.is_valid === false'
|
|
59
|
+
|
|
60
|
+
- name: data-enricher
|
|
61
|
+
type: CustomAgent
|
|
62
|
+
custom_type: specialized
|
|
63
|
+
ossa_type: worker
|
|
64
|
+
capabilities:
|
|
65
|
+
- data-enrichment
|
|
66
|
+
- ml-inference
|
|
67
|
+
instruction: |
|
|
68
|
+
Enrich {transformed_data} with:
|
|
69
|
+
- External API data
|
|
70
|
+
- ML model predictions
|
|
71
|
+
- Calculated metrics
|
|
72
|
+
Store in {enriched_data}
|
|
73
|
+
output_key: enriched_data
|
|
74
|
+
|
|
75
|
+
- name: data-loader
|
|
76
|
+
type: LlmAgent
|
|
77
|
+
ossa_type: worker
|
|
78
|
+
capabilities:
|
|
79
|
+
- database-operations
|
|
80
|
+
- data-persistence
|
|
81
|
+
instruction: |
|
|
82
|
+
Load {enriched_data} to target system
|
|
83
|
+
Update {batch_counter}
|
|
84
|
+
Log operation in {load_status}
|
|
85
|
+
output_key: load_status
|
|
86
|
+
tools:
|
|
87
|
+
- database_query
|
|
88
|
+
|
|
89
|
+
# Loop configuration
|
|
90
|
+
execution:
|
|
91
|
+
loop_config:
|
|
92
|
+
# Continue while more data exists
|
|
93
|
+
condition: 'session.state.has_more_data === true'
|
|
94
|
+
max_iterations: 100
|
|
95
|
+
batch_size: 1000
|
|
96
|
+
|
|
97
|
+
# Break conditions
|
|
98
|
+
break_conditions:
|
|
99
|
+
- 'session.state.error_count > 5'
|
|
100
|
+
- 'session.state.batch_counter >= session.state.total_batches'
|
|
101
|
+
|
|
102
|
+
# Conditional branches
|
|
103
|
+
conditional_config:
|
|
104
|
+
data-validator:
|
|
105
|
+
skip_if: 'session.state.skip_validation === true'
|
|
106
|
+
|
|
107
|
+
data-enricher:
|
|
108
|
+
execute_if: 'session.state.validation_status.quality_score > 0.8'
|
|
109
|
+
|
|
110
|
+
error-corrector:
|
|
111
|
+
execute_if: |
|
|
112
|
+
session.state.validation_status.errors.length > 0 &&
|
|
113
|
+
session.state.validation_status.errors.some(e => e.severity === 'critical')
|
|
114
|
+
|
|
115
|
+
# Parallel processing for sub-workflows
|
|
116
|
+
parallel_config:
|
|
117
|
+
enabled: true
|
|
118
|
+
max_workers: 5
|
|
119
|
+
distribute_by: 'session.state.raw_data.partition_key'
|
|
120
|
+
|
|
121
|
+
# ADK state management
|
|
122
|
+
adk_config:
|
|
123
|
+
state:
|
|
124
|
+
# Persistent state across iterations
|
|
125
|
+
persistent_keys:
|
|
126
|
+
- batch_counter
|
|
127
|
+
- total_processed
|
|
128
|
+
- error_count
|
|
129
|
+
- processing_metrics
|
|
130
|
+
|
|
131
|
+
# Temporary state (cleared each iteration)
|
|
132
|
+
temp_keys:
|
|
133
|
+
- raw_data
|
|
134
|
+
- validation_status
|
|
135
|
+
- transformed_data
|
|
136
|
+
- enriched_data
|
|
137
|
+
|
|
138
|
+
# Performance optimization
|
|
139
|
+
optimization:
|
|
140
|
+
cache_transformations: true
|
|
141
|
+
reuse_connections: true
|
|
142
|
+
batch_database_writes: true
|
|
143
|
+
|
|
144
|
+
# Error recovery
|
|
145
|
+
error_recovery:
|
|
146
|
+
checkpoint_frequency: 10 # Save state every 10 iterations
|
|
147
|
+
resume_on_failure: true
|
|
148
|
+
dead_letter_queue: true
|
|
149
|
+
|
|
150
|
+
# Monitoring
|
|
151
|
+
monitoring:
|
|
152
|
+
metrics:
|
|
153
|
+
- batches_processed
|
|
154
|
+
- records_transformed
|
|
155
|
+
- validation_failures
|
|
156
|
+
- enrichment_success_rate
|
|
157
|
+
alerts:
|
|
158
|
+
- condition: 'metrics.validation_failures > 10'
|
|
159
|
+
severity: warning
|
|
160
|
+
- condition: 'metrics.enrichment_success_rate < 0.95'
|
|
161
|
+
severity: critical
|
|
162
|
+
# Example usage:
|
|
163
|
+
#
|
|
164
|
+
# const result = await adapter.executeOrchestration(
|
|
165
|
+
# 'loop',
|
|
166
|
+
# ['data-ingester', 'data-validator', 'data-transformer', 'data-enricher', 'data-loader'],
|
|
167
|
+
# { source: 's3://data-bucket/input/' },
|
|
168
|
+
# {
|
|
169
|
+
# maxIterations: 100,
|
|
170
|
+
# condition: (state) => state.has_more_data,
|
|
171
|
+
# breakCondition: (result, state) => state.error_count > 5
|
|
172
|
+
# }
|
|
173
|
+
# );
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"environment": "production",
|
|
3
|
+
"classification": "confidential",
|
|
4
|
+
"region": "us-east-1",
|
|
5
|
+
"industry": "financial-services",
|
|
6
|
+
"dataTypes": [
|
|
7
|
+
"financial-records",
|
|
8
|
+
"customer-data",
|
|
9
|
+
"transaction-logs",
|
|
10
|
+
"audit-trails"
|
|
11
|
+
],
|
|
12
|
+
"regulatoryRequirements": [
|
|
13
|
+
"iso-42001",
|
|
14
|
+
"nist-ai-rmf",
|
|
15
|
+
"eu-ai-act"
|
|
16
|
+
],
|
|
17
|
+
"complianceMetadata": {
|
|
18
|
+
"organization": "Enterprise Financial Corp",
|
|
19
|
+
"complianceOfficer": "compliance@enterprise.com",
|
|
20
|
+
"lastReview": "2024-01-15",
|
|
21
|
+
"nextReview": "2024-04-15",
|
|
22
|
+
"certifications": [
|
|
23
|
+
"ISO 27001:2022",
|
|
24
|
+
"SOC 2 Type II",
|
|
25
|
+
"PCI DSS Level 1"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"enforcementPolicies": {
|
|
29
|
+
"productionDeployment": {
|
|
30
|
+
"minimumConformance": "gold",
|
|
31
|
+
"auditLogging": "mandatory",
|
|
32
|
+
"tlsRequired": true,
|
|
33
|
+
"humanOversight": "required",
|
|
34
|
+
"budgetLimits": {
|
|
35
|
+
"daily": 100000,
|
|
36
|
+
"monthly": 2000000,
|
|
37
|
+
"emergency": 500000
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"stagingDeployment": {
|
|
41
|
+
"minimumConformance": "silver",
|
|
42
|
+
"auditLogging": "recommended",
|
|
43
|
+
"tlsRequired": true,
|
|
44
|
+
"humanOversight": "optional"
|
|
45
|
+
},
|
|
46
|
+
"developmentDeployment": {
|
|
47
|
+
"minimumConformance": "bronze",
|
|
48
|
+
"auditLogging": "optional",
|
|
49
|
+
"tlsRequired": false,
|
|
50
|
+
"humanOversight": "optional"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|