@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,82 @@
|
|
|
1
|
+
apiVersion: ossa.io/v0.1.9
|
|
2
|
+
kind: Agent
|
|
3
|
+
metadata:
|
|
4
|
+
name: data-processing-worker
|
|
5
|
+
version: v1.2.0
|
|
6
|
+
description: 'High-performance worker agent for distributed data processing tasks'
|
|
7
|
+
author: 'data-engineering-team'
|
|
8
|
+
labels:
|
|
9
|
+
environment: production
|
|
10
|
+
classification: internal
|
|
11
|
+
role: worker
|
|
12
|
+
complexity: standard
|
|
13
|
+
spec:
|
|
14
|
+
type: worker
|
|
15
|
+
subtype: data-processor
|
|
16
|
+
capabilities:
|
|
17
|
+
domains:
|
|
18
|
+
- data-processing
|
|
19
|
+
- stream-analytics
|
|
20
|
+
- batch-processing
|
|
21
|
+
- file-operations
|
|
22
|
+
- database-operations
|
|
23
|
+
operations:
|
|
24
|
+
- process-records
|
|
25
|
+
- transform-data
|
|
26
|
+
- validate-input
|
|
27
|
+
- generate-output
|
|
28
|
+
- handle-errors
|
|
29
|
+
- report-progress
|
|
30
|
+
patterns:
|
|
31
|
+
- pipeline-processing
|
|
32
|
+
- error-recovery
|
|
33
|
+
- checkpoint-resume
|
|
34
|
+
- rate-limiting
|
|
35
|
+
- batching
|
|
36
|
+
protocols:
|
|
37
|
+
supported:
|
|
38
|
+
- name: rest
|
|
39
|
+
version: '1.1'
|
|
40
|
+
endpoint: 'https://worker.platform.com/api/v1'
|
|
41
|
+
authentication:
|
|
42
|
+
type: bearer-token
|
|
43
|
+
scopes: ['worker.execute', 'data.read', 'data.write']
|
|
44
|
+
tls: true
|
|
45
|
+
- name: message-queue
|
|
46
|
+
version: '1.0'
|
|
47
|
+
endpoint: 'amqp://queue.platform.com:5672/workers'
|
|
48
|
+
authentication:
|
|
49
|
+
type: sasl
|
|
50
|
+
- name: grpc
|
|
51
|
+
version: '1.0'
|
|
52
|
+
endpoint: 'grpc://worker.platform.com:9090/DataProcessor'
|
|
53
|
+
authentication:
|
|
54
|
+
type: mutual-tls
|
|
55
|
+
processing:
|
|
56
|
+
maxConcurrentTasks: 10
|
|
57
|
+
maxMemoryUsage: '2Gi'
|
|
58
|
+
maxCpuUsage: '1000m'
|
|
59
|
+
timeout: 300000
|
|
60
|
+
retryPolicy:
|
|
61
|
+
maxAttempts: 3
|
|
62
|
+
backoffStrategy: exponential
|
|
63
|
+
baseDelay: 1000
|
|
64
|
+
errorHandling:
|
|
65
|
+
strategy: dead-letter-queue
|
|
66
|
+
maxFailures: 5
|
|
67
|
+
performance:
|
|
68
|
+
throughput:
|
|
69
|
+
recordsPerSecond: 1000
|
|
70
|
+
maxBatchSize: 100
|
|
71
|
+
latency:
|
|
72
|
+
processingTime: 50
|
|
73
|
+
p95: 200
|
|
74
|
+
p99: 500
|
|
75
|
+
monitoring:
|
|
76
|
+
healthChecks: true
|
|
77
|
+
performanceMetrics: true
|
|
78
|
+
errorTracking: true
|
|
79
|
+
alerting:
|
|
80
|
+
errorThreshold: 5
|
|
81
|
+
latencyThreshold: 1000
|
|
82
|
+
memoryThreshold: 80
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"apiVersion": "ossa/v0.2.3",
|
|
3
|
+
"kind": "Agent",
|
|
4
|
+
"metadata": {
|
|
5
|
+
"name": "claude-assistant",
|
|
6
|
+
"version": "1.0.0",
|
|
7
|
+
"description": "Anthropic Claude API assistant agent"
|
|
8
|
+
},
|
|
9
|
+
"spec": {
|
|
10
|
+
"role": "You are a helpful, harmless, and honest AI assistant.",
|
|
11
|
+
"llm": {
|
|
12
|
+
"provider": "anthropic",
|
|
13
|
+
"model": "claude-3-5-sonnet-20241022",
|
|
14
|
+
"temperature": 1.0
|
|
15
|
+
},
|
|
16
|
+
"tools": []
|
|
17
|
+
},
|
|
18
|
+
"extensions": {
|
|
19
|
+
"anthropic": {
|
|
20
|
+
"enabled": true,
|
|
21
|
+
"model": "claude-3-5-sonnet-20241022",
|
|
22
|
+
"system": "You are a helpful, harmless, and honest AI assistant.",
|
|
23
|
+
"max_tokens": 4096,
|
|
24
|
+
"temperature": 1.0,
|
|
25
|
+
"tools": [
|
|
26
|
+
{
|
|
27
|
+
"name": "calculator",
|
|
28
|
+
"description": "Perform mathematical calculations",
|
|
29
|
+
"input_schema": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"properties": {
|
|
32
|
+
"expression": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "Mathematical expression to evaluate"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"required": ["expression"]
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"streaming": false
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
#!/usr/bin/env ts-node
|
|
2
|
+
/**
|
|
3
|
+
* Example of OSSA LLM Agent using Ollama for free local inference
|
|
4
|
+
* Run: npx ts-node examples/ollama-integration.ts
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { OSSALlmAgent } from '../dist/adk/agents/llm-agent.js';
|
|
8
|
+
import { ADKAgentConfig } from '../dist/adk/agents/index.js';
|
|
9
|
+
|
|
10
|
+
// Load environment variables
|
|
11
|
+
import * as dotenv from 'dotenv';
|
|
12
|
+
dotenv.config();
|
|
13
|
+
|
|
14
|
+
async function demonstrateOllamaIntegration() {
|
|
15
|
+
console.log('🤖 OSSA + Ollama Integration Demo');
|
|
16
|
+
console.log('===================================');
|
|
17
|
+
|
|
18
|
+
// Create agent configuration
|
|
19
|
+
const agentConfig: ADKAgentConfig = {
|
|
20
|
+
name: 'OllamaTestAgent',
|
|
21
|
+
instruction:
|
|
22
|
+
'You are a helpful AI assistant. Provide clear, concise answers.',
|
|
23
|
+
tools: [],
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
// Create LLM agent
|
|
27
|
+
const agent = new OSSALlmAgent(agentConfig);
|
|
28
|
+
|
|
29
|
+
console.log(
|
|
30
|
+
`Using Ollama model: ${process.env.OLLAMA_MODEL || 'gpt-oss:20b'}`
|
|
31
|
+
);
|
|
32
|
+
console.log(
|
|
33
|
+
`Ollama URL: ${process.env.OLLAMA_BASE_URL || 'http://localhost:11434'}`
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
// Test cases
|
|
37
|
+
const testCases = [
|
|
38
|
+
{
|
|
39
|
+
name: 'Basic Greeting',
|
|
40
|
+
input: 'Hello! Can you introduce yourself?',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'Code Question',
|
|
44
|
+
input: 'Explain what TypeScript interfaces are in one sentence.',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'OSSA Question',
|
|
48
|
+
input: 'What is OSSA and why is it useful for AI agents?',
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
|
|
52
|
+
for (const testCase of testCases) {
|
|
53
|
+
console.log(`\n📝 Test: ${testCase.name}`);
|
|
54
|
+
console.log(`Input: ${testCase.input}`);
|
|
55
|
+
console.log('---');
|
|
56
|
+
|
|
57
|
+
try {
|
|
58
|
+
const startTime = Date.now();
|
|
59
|
+
const result = await agent.invoke({ question: testCase.input });
|
|
60
|
+
const duration = Date.now() - startTime;
|
|
61
|
+
|
|
62
|
+
if (result.success) {
|
|
63
|
+
console.log(`✅ Response (${duration}ms):`);
|
|
64
|
+
console.log(result.output);
|
|
65
|
+
if (result.thinking) {
|
|
66
|
+
console.log(`🧠 Model thinking: ${result.thinking}`);
|
|
67
|
+
}
|
|
68
|
+
console.log(`🏷️ Model: ${result.model}`);
|
|
69
|
+
} else {
|
|
70
|
+
console.log(`❌ Error: ${result.error}`);
|
|
71
|
+
}
|
|
72
|
+
} catch (error) {
|
|
73
|
+
console.log(`💥 Exception: ${error}`);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
console.log(
|
|
78
|
+
'\n🎉 Demo completed! You are now using free local AI with OSSA + Ollama'
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// Check if Ollama is running
|
|
83
|
+
async function checkOllamaConnection(): Promise<boolean> {
|
|
84
|
+
try {
|
|
85
|
+
const baseUrl = process.env.OLLAMA_BASE_URL || 'http://localhost:11434';
|
|
86
|
+
const response = await fetch(`${baseUrl}/api/tags`);
|
|
87
|
+
return response.ok;
|
|
88
|
+
} catch (error) {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Main execution
|
|
94
|
+
async function main() {
|
|
95
|
+
// Check Ollama connection first
|
|
96
|
+
const isOllamaRunning = await checkOllamaConnection();
|
|
97
|
+
|
|
98
|
+
if (!isOllamaRunning) {
|
|
99
|
+
console.log('❌ Ollama is not running or not accessible');
|
|
100
|
+
console.log('Please start Ollama with: ollama serve');
|
|
101
|
+
console.log('Then run this demo again.');
|
|
102
|
+
process.exit(1);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
await demonstrateOllamaIntegration();
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
if (require.main === module) {
|
|
109
|
+
main().catch(console.error);
|
|
110
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"apiVersion": "ossa/v0.2.3",
|
|
3
|
+
"kind": "Agent",
|
|
4
|
+
"metadata": {
|
|
5
|
+
"name": "autogen-assistant",
|
|
6
|
+
"version": "1.0.0",
|
|
7
|
+
"description": "AutoGen multi-agent assistant"
|
|
8
|
+
},
|
|
9
|
+
"spec": {
|
|
10
|
+
"role": "You are an AI assistant that can collaborate with other agents to solve complex problems.",
|
|
11
|
+
"llm": {
|
|
12
|
+
"provider": "openai",
|
|
13
|
+
"model": "gpt-4",
|
|
14
|
+
"temperature": 0.7
|
|
15
|
+
},
|
|
16
|
+
"tools": []
|
|
17
|
+
},
|
|
18
|
+
"extensions": {
|
|
19
|
+
"autogen": {
|
|
20
|
+
"enabled": true,
|
|
21
|
+
"agent_type": "assistant",
|
|
22
|
+
"system_message": "You are an AI assistant that can collaborate with other agents to solve complex problems.",
|
|
23
|
+
"human_input_mode": "NEVER",
|
|
24
|
+
"code_execution": {
|
|
25
|
+
"enabled": true,
|
|
26
|
+
"work_dir": "/tmp/autogen",
|
|
27
|
+
"use_docker": false
|
|
28
|
+
},
|
|
29
|
+
"max_consecutive_auto_reply": 10,
|
|
30
|
+
"groupchat": {
|
|
31
|
+
"agents": ["user_proxy", "assistant"],
|
|
32
|
+
"max_round": 20
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
# OSSA Bridge Configuration Examples
|
|
2
|
+
# Demonstrates how to configure various protocol bridges for agent interoperability
|
|
3
|
+
|
|
4
|
+
---
|
|
5
|
+
# Example 1: MCP Bridge with stdio transport (Claude Desktop integration)
|
|
6
|
+
ossaVersion: '1.0'
|
|
7
|
+
agent:
|
|
8
|
+
id: mcp-stdio-agent
|
|
9
|
+
name: 'Claude Desktop MCP Agent'
|
|
10
|
+
version: '1.0.0'
|
|
11
|
+
description: 'Agent exposed as MCP tool server for Claude Desktop'
|
|
12
|
+
role: custom
|
|
13
|
+
tags: ['mcp', 'claude-desktop', 'local']
|
|
14
|
+
|
|
15
|
+
runtime:
|
|
16
|
+
type: local
|
|
17
|
+
command: ['node', 'dist/agent.js']
|
|
18
|
+
resources:
|
|
19
|
+
cpu: '500m'
|
|
20
|
+
memory: '512Mi'
|
|
21
|
+
|
|
22
|
+
capabilities:
|
|
23
|
+
- name: analyze_code
|
|
24
|
+
description: 'Analyze source code for issues'
|
|
25
|
+
input_schema:
|
|
26
|
+
type: object
|
|
27
|
+
properties:
|
|
28
|
+
code:
|
|
29
|
+
type: string
|
|
30
|
+
language:
|
|
31
|
+
type: string
|
|
32
|
+
enum: ['typescript', 'javascript', 'python']
|
|
33
|
+
required: ['code', 'language']
|
|
34
|
+
output_schema:
|
|
35
|
+
type: object
|
|
36
|
+
properties:
|
|
37
|
+
issues:
|
|
38
|
+
type: array
|
|
39
|
+
items:
|
|
40
|
+
type: object
|
|
41
|
+
|
|
42
|
+
bridge:
|
|
43
|
+
mcp:
|
|
44
|
+
enabled: true
|
|
45
|
+
server_type: stdio
|
|
46
|
+
tools:
|
|
47
|
+
- name: analyze_code
|
|
48
|
+
description: 'Analyze source code for issues'
|
|
49
|
+
capability: analyze_code
|
|
50
|
+
input_schema:
|
|
51
|
+
type: object
|
|
52
|
+
properties:
|
|
53
|
+
code: { type: string }
|
|
54
|
+
language: { type: string }
|
|
55
|
+
required: ['code', 'language']
|
|
56
|
+
|
|
57
|
+
resources:
|
|
58
|
+
- uri: 'ossa://code-analysis'
|
|
59
|
+
name: 'Code Analysis Results'
|
|
60
|
+
description: 'Access to code analysis results'
|
|
61
|
+
mimeType: 'application/json'
|
|
62
|
+
readonly: true
|
|
63
|
+
|
|
64
|
+
prompts:
|
|
65
|
+
- name: review_pr
|
|
66
|
+
description: 'Review a pull request'
|
|
67
|
+
template: "Review the following {{language}} code changes:\n{{diff}}"
|
|
68
|
+
arguments:
|
|
69
|
+
- name: language
|
|
70
|
+
type: string
|
|
71
|
+
required: true
|
|
72
|
+
- name: diff
|
|
73
|
+
type: string
|
|
74
|
+
required: true
|
|
75
|
+
|
|
76
|
+
config:
|
|
77
|
+
max_message_size: 1048576
|
|
78
|
+
timeout_ms: 30000
|
|
79
|
+
retry_count: 3
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
# Example 2: Multi-Bridge Agent (MCP + OpenAPI + LangChain)
|
|
83
|
+
ossaVersion: '1.0'
|
|
84
|
+
agent:
|
|
85
|
+
id: multi-bridge-orchestrator
|
|
86
|
+
name: 'Multi-Protocol Orchestrator'
|
|
87
|
+
version: '1.0.0'
|
|
88
|
+
description: 'Agent supporting multiple bridge protocols simultaneously'
|
|
89
|
+
role: orchestration
|
|
90
|
+
tags: ['multi-protocol', 'orchestrator', 'integration']
|
|
91
|
+
|
|
92
|
+
runtime:
|
|
93
|
+
type: docker
|
|
94
|
+
image: 'ossa/multi-bridge:latest'
|
|
95
|
+
resources:
|
|
96
|
+
cpu: '1'
|
|
97
|
+
memory: '1Gi'
|
|
98
|
+
|
|
99
|
+
capabilities:
|
|
100
|
+
- name: execute_workflow
|
|
101
|
+
description: 'Execute multi-step workflow'
|
|
102
|
+
input_schema:
|
|
103
|
+
type: object
|
|
104
|
+
properties:
|
|
105
|
+
workflow_id: { type: string }
|
|
106
|
+
steps: { type: array }
|
|
107
|
+
|
|
108
|
+
bridge:
|
|
109
|
+
# MCP Bridge for AI assistant integration
|
|
110
|
+
mcp:
|
|
111
|
+
enabled: true
|
|
112
|
+
server_type: websocket
|
|
113
|
+
tools:
|
|
114
|
+
- name: execute_workflow
|
|
115
|
+
description: 'Execute a workflow'
|
|
116
|
+
capability: execute_workflow
|
|
117
|
+
|
|
118
|
+
# OpenAPI Bridge for REST API access
|
|
119
|
+
openapi:
|
|
120
|
+
enabled: true
|
|
121
|
+
spec_url: 'https://api.example.com/openapi.json'
|
|
122
|
+
spec_version: '3.1'
|
|
123
|
+
auto_generate: false
|
|
124
|
+
servers:
|
|
125
|
+
- url: 'https://api.example.com'
|
|
126
|
+
description: 'Production API'
|
|
127
|
+
|
|
128
|
+
# LangChain Bridge for Python integration
|
|
129
|
+
langchain:
|
|
130
|
+
enabled: true
|
|
131
|
+
tool_class: 'OSSAWorkflowTool'
|
|
132
|
+
chain_type: agent
|
|
133
|
+
memory:
|
|
134
|
+
type: conversation
|
|
135
|
+
max_tokens: 4096
|
|
136
|
+
export:
|
|
137
|
+
as_tool: true
|
|
138
|
+
as_chain: true
|
|
139
|
+
as_agent: false
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
# Example 3: CrewAI Integration
|
|
143
|
+
ossaVersion: '1.0'
|
|
144
|
+
agent:
|
|
145
|
+
id: crewai-researcher
|
|
146
|
+
name: 'Research Agent'
|
|
147
|
+
version: '1.0.0'
|
|
148
|
+
description: 'Agent configured for CrewAI framework'
|
|
149
|
+
role: custom
|
|
150
|
+
tags: ['crewai', 'research', 'analyst']
|
|
151
|
+
|
|
152
|
+
runtime:
|
|
153
|
+
type: docker
|
|
154
|
+
image: 'ossa/crewai-agent:latest'
|
|
155
|
+
|
|
156
|
+
capabilities:
|
|
157
|
+
- name: research_topic
|
|
158
|
+
description: 'Research a topic and provide insights'
|
|
159
|
+
|
|
160
|
+
bridge:
|
|
161
|
+
crewai:
|
|
162
|
+
enabled: true
|
|
163
|
+
agent_type: researcher
|
|
164
|
+
role: 'Senior Research Analyst'
|
|
165
|
+
goal: 'Conduct thorough research and provide actionable insights'
|
|
166
|
+
backstory: 'Expert researcher with 10+ years of experience in data analysis'
|
|
167
|
+
tools: ['web_search', 'document_reader', 'data_analyzer']
|
|
168
|
+
llm:
|
|
169
|
+
model: 'gpt-4'
|
|
170
|
+
temperature: 0.7
|
|
171
|
+
max_iter: 15
|
|
172
|
+
allow_delegation: true
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
# Example 4: AutoGen Group Chat Agent
|
|
176
|
+
ossaVersion: '1.0'
|
|
177
|
+
agent:
|
|
178
|
+
id: autogen-assistant
|
|
179
|
+
name: 'AutoGen Assistant'
|
|
180
|
+
version: '1.0.0'
|
|
181
|
+
description: 'Agent for AutoGen multi-agent conversations'
|
|
182
|
+
role: chat
|
|
183
|
+
tags: ['autogen', 'assistant', 'conversation']
|
|
184
|
+
|
|
185
|
+
runtime:
|
|
186
|
+
type: local
|
|
187
|
+
command: ['python', 'agent.py']
|
|
188
|
+
|
|
189
|
+
capabilities:
|
|
190
|
+
- name: code_generation
|
|
191
|
+
description: 'Generate code based on requirements'
|
|
192
|
+
- name: code_execution
|
|
193
|
+
description: 'Execute and test code'
|
|
194
|
+
|
|
195
|
+
bridge:
|
|
196
|
+
autogen:
|
|
197
|
+
enabled: true
|
|
198
|
+
agent_type: assistant
|
|
199
|
+
system_message: 'You are a helpful AI assistant specializing in code generation and testing.'
|
|
200
|
+
human_input_mode: TERMINATE
|
|
201
|
+
code_execution:
|
|
202
|
+
enabled: true
|
|
203
|
+
work_dir: '/tmp/autogen'
|
|
204
|
+
use_docker: true
|
|
205
|
+
llm_config:
|
|
206
|
+
model: 'gpt-4'
|
|
207
|
+
temperature: 0.7
|
|
208
|
+
max_tokens: 4096
|
|
209
|
+
functions:
|
|
210
|
+
- name: generate_code
|
|
211
|
+
description: 'Generate code'
|
|
212
|
+
- name: execute_code
|
|
213
|
+
description: 'Execute code'
|
|
214
|
+
max_consecutive_auto_reply: 10
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
# Example 5: Agent-to-Agent (A2A) Protocol
|
|
218
|
+
ossaVersion: '1.0'
|
|
219
|
+
agent:
|
|
220
|
+
id: a2a-discovery-agent
|
|
221
|
+
name: 'Discovery Agent'
|
|
222
|
+
version: '1.0.0'
|
|
223
|
+
description: 'Agent supporting A2A protocol for discovery'
|
|
224
|
+
role: custom
|
|
225
|
+
tags: ['a2a', 'discovery', 'coordination']
|
|
226
|
+
|
|
227
|
+
runtime:
|
|
228
|
+
type: k8s
|
|
229
|
+
image: 'ossa/a2a-agent:latest'
|
|
230
|
+
|
|
231
|
+
capabilities:
|
|
232
|
+
- name: discover_agents
|
|
233
|
+
description: 'Discover other agents in the network'
|
|
234
|
+
- name: coordinate_task
|
|
235
|
+
description: 'Coordinate task execution across agents'
|
|
236
|
+
|
|
237
|
+
bridge:
|
|
238
|
+
a2a:
|
|
239
|
+
enabled: true
|
|
240
|
+
card_url: 'https://agents.example.com/cards/discovery-agent'
|
|
241
|
+
schema_version: '1.0'
|
|
242
|
+
capabilities_mapping:
|
|
243
|
+
discover_agents: 'agent.discovery'
|
|
244
|
+
coordinate_task: 'task.coordination'
|
|
245
|
+
metadata:
|
|
246
|
+
'@context': 'https://a2a-protocol.org/context'
|
|
247
|
+
'@type': 'DiscoveryAgent'
|
|
248
|
+
|
|
249
|
+
---
|
|
250
|
+
# Example 6: Custom Bridge Implementation
|
|
251
|
+
ossaVersion: '1.0'
|
|
252
|
+
agent:
|
|
253
|
+
id: custom-bridge-agent
|
|
254
|
+
name: 'Custom Bridge Agent'
|
|
255
|
+
version: '1.0.0'
|
|
256
|
+
description: 'Agent with custom bridge protocol'
|
|
257
|
+
role: integration
|
|
258
|
+
tags: ['custom', 'integration']
|
|
259
|
+
|
|
260
|
+
runtime:
|
|
261
|
+
type: docker
|
|
262
|
+
image: 'ossa/custom-bridge:latest'
|
|
263
|
+
|
|
264
|
+
capabilities:
|
|
265
|
+
- name: custom_operation
|
|
266
|
+
description: 'Custom operation'
|
|
267
|
+
|
|
268
|
+
bridge:
|
|
269
|
+
# Standard MCP bridge
|
|
270
|
+
mcp:
|
|
271
|
+
enabled: true
|
|
272
|
+
server_type: websocket
|
|
273
|
+
|
|
274
|
+
# Custom bridge configuration
|
|
275
|
+
custom:
|
|
276
|
+
my_custom_protocol:
|
|
277
|
+
enabled: true
|
|
278
|
+
endpoint: 'wss://custom.protocol.io'
|
|
279
|
+
auth:
|
|
280
|
+
type: 'api_key'
|
|
281
|
+
key_env_var: 'CUSTOM_API_KEY'
|
|
282
|
+
features:
|
|
283
|
+
- streaming
|
|
284
|
+
- bidirectional
|
|
285
|
+
- binary_data
|
|
286
|
+
config:
|
|
287
|
+
max_connections: 100
|
|
288
|
+
heartbeat_interval_ms: 30000
|
|
289
|
+
|
|
290
|
+
---
|
|
291
|
+
# Example 7: MCP Bridge with SSE Transport (Web Integration)
|
|
292
|
+
ossaVersion: '1.0'
|
|
293
|
+
agent:
|
|
294
|
+
id: mcp-sse-agent
|
|
295
|
+
name: 'Web MCP Agent'
|
|
296
|
+
version: '1.0.0'
|
|
297
|
+
description: 'Agent exposed via Server-Sent Events for web apps'
|
|
298
|
+
role: custom
|
|
299
|
+
tags: ['mcp', 'sse', 'web']
|
|
300
|
+
|
|
301
|
+
runtime:
|
|
302
|
+
type: docker
|
|
303
|
+
image: 'ossa/mcp-sse:latest'
|
|
304
|
+
resources:
|
|
305
|
+
cpu: '500m'
|
|
306
|
+
memory: '512Mi'
|
|
307
|
+
|
|
308
|
+
integration:
|
|
309
|
+
protocol: http
|
|
310
|
+
endpoints:
|
|
311
|
+
base_url: 'https://agent.example.com'
|
|
312
|
+
health: '/health'
|
|
313
|
+
metrics: '/metrics'
|
|
314
|
+
|
|
315
|
+
capabilities:
|
|
316
|
+
- name: chat
|
|
317
|
+
description: 'Chat with the agent'
|
|
318
|
+
- name: file_analysis
|
|
319
|
+
description: 'Analyze uploaded files'
|
|
320
|
+
|
|
321
|
+
bridge:
|
|
322
|
+
mcp:
|
|
323
|
+
enabled: true
|
|
324
|
+
server_type: sse
|
|
325
|
+
tools:
|
|
326
|
+
- name: chat
|
|
327
|
+
description: 'Chat with the agent'
|
|
328
|
+
capability: chat
|
|
329
|
+
- name: analyze_file
|
|
330
|
+
description: 'Analyze a file'
|
|
331
|
+
capability: file_analysis
|
|
332
|
+
|
|
333
|
+
resources:
|
|
334
|
+
- uri: 'ossa://conversations'
|
|
335
|
+
name: 'Conversation History'
|
|
336
|
+
mimeType: 'application/json'
|
|
337
|
+
readonly: false
|
|
338
|
+
- uri: 'ossa://files'
|
|
339
|
+
name: 'Uploaded Files'
|
|
340
|
+
mimeType: 'application/octet-stream'
|
|
341
|
+
readonly: false
|
|
342
|
+
|
|
343
|
+
config:
|
|
344
|
+
max_message_size: 5242880 # 5MB
|
|
345
|
+
timeout_ms: 60000
|
|
346
|
+
retry_count: 5
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# Production Multi-Stage Dockerfile for AIFlow Agent
|
|
2
|
+
# Optimized for size, security, and performance
|
|
3
|
+
|
|
4
|
+
#===========================================
|
|
5
|
+
# Stage 1: Base Dependencies
|
|
6
|
+
#===========================================
|
|
7
|
+
FROM python:3.11-slim as base
|
|
8
|
+
|
|
9
|
+
# Install system dependencies
|
|
10
|
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
11
|
+
curl \
|
|
12
|
+
ca-certificates \
|
|
13
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
14
|
+
|
|
15
|
+
# Create non-root user
|
|
16
|
+
RUN groupadd -r aiflow && useradd -r -g aiflow -u 1000 aiflow
|
|
17
|
+
|
|
18
|
+
# Set working directory
|
|
19
|
+
WORKDIR /app
|
|
20
|
+
|
|
21
|
+
#===========================================
|
|
22
|
+
# Stage 2: Dependencies Builder
|
|
23
|
+
#===========================================
|
|
24
|
+
FROM base as builder
|
|
25
|
+
|
|
26
|
+
# Install build dependencies
|
|
27
|
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
28
|
+
gcc \
|
|
29
|
+
g++ \
|
|
30
|
+
make \
|
|
31
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
32
|
+
|
|
33
|
+
# Copy requirements
|
|
34
|
+
COPY requirements.txt .
|
|
35
|
+
|
|
36
|
+
# Install Python dependencies
|
|
37
|
+
RUN pip install --no-cache-dir --upgrade pip && \
|
|
38
|
+
pip install --no-cache-dir --prefix=/install -r requirements.txt
|
|
39
|
+
|
|
40
|
+
#===========================================
|
|
41
|
+
# Stage 3: Production Runtime
|
|
42
|
+
#===========================================
|
|
43
|
+
FROM base as production
|
|
44
|
+
|
|
45
|
+
# Copy installed dependencies from builder
|
|
46
|
+
COPY --from=builder /install /usr/local
|
|
47
|
+
|
|
48
|
+
# Copy application code
|
|
49
|
+
COPY aiflow-bridge-enhanced.py /app/
|
|
50
|
+
COPY aiflow-phoenix-tracing.py /app/
|
|
51
|
+
|
|
52
|
+
# Copy character configuration
|
|
53
|
+
COPY characters/ /app/characters/
|
|
54
|
+
|
|
55
|
+
# Change ownership to non-root user
|
|
56
|
+
RUN chown -R aiflow:aiflow /app
|
|
57
|
+
|
|
58
|
+
# Switch to non-root user
|
|
59
|
+
USER aiflow
|
|
60
|
+
|
|
61
|
+
# Expose port
|
|
62
|
+
EXPOSE 8000
|
|
63
|
+
|
|
64
|
+
# Health check
|
|
65
|
+
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \
|
|
66
|
+
CMD curl -f http://localhost:8000/health || exit 1
|
|
67
|
+
|
|
68
|
+
# Environment variables
|
|
69
|
+
ENV PYTHONUNBUFFERED=1 \
|
|
70
|
+
PYTHONDONTWRITEBYTECODE=1 \
|
|
71
|
+
PIP_NO_CACHE_DIR=1 \
|
|
72
|
+
PIP_DISABLE_PIP_VERSION_CHECK=1
|
|
73
|
+
|
|
74
|
+
# Run the application
|
|
75
|
+
CMD ["python", "-u", "aiflow-bridge-enhanced.py"]
|
|
76
|
+
|
|
77
|
+
# Metadata
|
|
78
|
+
LABEL org.opencontainers.image.title="AIFlow Social Agent" \
|
|
79
|
+
org.opencontainers.image.description="Personality-driven social AI agent with BuildKit registration" \
|
|
80
|
+
org.opencontainers.image.version="1.0.0" \
|
|
81
|
+
org.opencontainers.image.vendor="OSSA Community" \
|
|
82
|
+
org.opencontainers.image.source="https://gitlab.bluefly.io/llm/openapi-ai-agents-standard" \
|
|
83
|
+
ossa.compliant="true" \
|
|
84
|
+
ossa.version="1.0" \
|
|
85
|
+
agent.framework="aiflow" \
|
|
86
|
+
agent.role="chat"
|
|
87
|
+
|