### Run TypeScript Examples Source: https://github.com/getaxonflow/axonflow/blob/main/examples/execution-replay/README.md Navigate to the TypeScript directory, install dependencies, and start the development server. ```bash cd typescript npm install npm run dev ``` -------------------------------- ### Install Dependencies and Run Example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/integrations/langgraph/python/README.md Install the required Python packages and run the main script to execute the example. ```bash pip install -r requirements.txt python main.py ``` -------------------------------- ### Run TypeScript SDK Example Source: https://github.com/getaxonflow/axonflow/blob/main/docs/guides/LOCAL_DEVELOPMENT_SETUP.md Steps to run a 'hello-world' example using the TypeScript SDK. Navigate to the example directory, install dependencies, and start the application. ```bash # Run example cd examples/hello-world/typescript npm install && npm start ``` -------------------------------- ### Run TypeScript Example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/code-governance/README.md Navigate to the typescript directory, configure environment variables, install dependencies, and start the application. ```bash cd typescript cp .env.example .env # Edit with your settings npm install npm start ``` -------------------------------- ### Run TypeScript Example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/execution-tracking/README.md Install Node.js dependencies and start the TypeScript example. ```bash cd typescript npm install npm start ``` -------------------------------- ### Run TypeScript SDK Examples Source: https://github.com/getaxonflow/axonflow/blob/main/examples/cost-controls/README.md Navigate to the 'typescript' directory, install dependencies with 'npm install', and run 'npm start' to execute the TypeScript SDK examples. For local development, link the SDK locally. ```bash cd typescript npm install npm start ``` ```bash # In SDK repo: npm link # In example: npm link @axonflow/sdk npm start ``` -------------------------------- ### Run Python SDK Examples Source: https://github.com/getaxonflow/axonflow/blob/main/examples/cost-controls/README.md Navigate to the 'python' directory, install dependencies with 'pip install -r requirements.txt', and run 'python main.py' to execute the Python SDK examples. For local development, install the SDK in editable mode. ```bash cd python pip install -r requirements.txt python main.py ``` ```bash pip install -e /path/to/axonflow-sdk-python python main.py ``` -------------------------------- ### Install and Run Dependencies Source: https://github.com/getaxonflow/axonflow/blob/main/examples/integrations/langgraph/typescript/README.md Commands to install project dependencies and execute the example workflow. ```bash # Install dependencies npm install # Run the example npm start ``` -------------------------------- ### Quick Start Repository Setup Source: https://github.com/getaxonflow/axonflow/blob/main/CONTRIBUTING.md Initial steps to clone the repository, configure environment variables, and launch the local development environment. ```bash # 1. Clone the repository git clone https://github.com/getaxonflow/axonflow.git cd axonflow # 2. (Optional) Set up LLM API keys for AI features cp .env.example .env # Edit .env and add your OPENAI_API_KEY or ANTHROPIC_API_KEY # 3. Start local development environment ./scripts/local-dev/start.sh # Recommended: includes health checks and waits # OR: docker compose up -d # Quick start (see README.md) # 4. Verify all services are healthy docker compose ps ``` -------------------------------- ### Run Go Examples Source: https://github.com/getaxonflow/axonflow/blob/main/examples/execution-replay/README.md Navigate to the Go directory, install dependencies, and run the main application. ```bash cd go go mod tidy go run main.go ``` -------------------------------- ### Run Quick Start Examples Source: https://github.com/getaxonflow/axonflow/blob/main/examples/singapore-pii/README.md Commands to initialize and run the demonstration projects for various programming languages. ```bash cd go go run main.go ``` ```bash cd python pip install axonflow python demo.py ``` ```bash cd typescript npm install npx ts-node demo.ts ``` -------------------------------- ### Install and Run Example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/integrations/governed-tools/typescript/README.md Installs dependencies and runs the TypeScript example using ts-node. Ensure AxonFlow is running locally. ```bash npm install npx ts-node src/index.ts ``` -------------------------------- ### Setup and Run Media Governance Policies Example (TypeScript) Source: https://github.com/getaxonflow/axonflow/blob/main/examples/media-governance-policies/README.md Install Node.js dependencies and run the media governance policies example using ts-node. Ensure you are in the 'typescript' directory. ```bash cd typescript npm install npx ts-node main.ts ``` -------------------------------- ### Initialize and Run AxonFlow Examples Source: https://github.com/getaxonflow/axonflow/blob/main/examples/llm-providers/azure-openai/hello-world/README.md Commands to prepare the environment, start the service, and execute language-specific examples. ```bash cp .env.example .env # Edit .env with your credentials ``` ```bash docker compose up -d ``` ```bash # Go cd go && go run main.go # Python cd python && pip install -r requirements.txt && python main.py # TypeScript cd typescript && npm install && npm start # HTTP (using curl) cd http && ./test.sh ``` -------------------------------- ### Run the Go Example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/integrations/langgraph/go/README.md Commands to prepare dependencies and execute the integration example. ```bash # Download dependencies go mod tidy # Run the example go run main.go ``` -------------------------------- ### Install Dependencies and Run Create Policy Example (Python) Source: https://github.com/getaxonflow/axonflow/blob/main/examples/policies/README.md Install Python dependencies and execute the script to create a custom policy using the Python SDK. ```bash cd python pip install -r requirements.txt python create_custom_policy.py ``` -------------------------------- ### Run Go SDK Example Source: https://github.com/getaxonflow/axonflow/blob/main/docs/guides/LOCAL_DEVELOPMENT_SETUP.md Steps to run a 'hello-world' example using the Go SDK. Navigate to the example directory and execute the main Go file. ```bash # Run example cd examples/hello-world/go go run main.go ``` -------------------------------- ### Copy Environment Example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/support-demo/README.md Copy the example environment file to start configuring your API keys and settings. ```bash # From the repository root directory cp .env.example .env ``` -------------------------------- ### Start Support Demo Source: https://github.com/getaxonflow/axonflow/blob/main/examples/support-demo/README.md Navigate to the support demo directory and run the start script. This script builds and starts demo containers and configures policies. ```bash cd examples/support-demo ./support-demo.sh ``` -------------------------------- ### Initialize Go Project and Install SDK Source: https://github.com/getaxonflow/axonflow/blob/main/docs/tutorials/01-first-agent-10-minutes.md Sets up a new Go project and installs the AxonFlow Go SDK. Ensure Go 1.25+ is installed. ```bash mkdir my-first-agent && cd my-first-agent go mod init my-first-agent go get github.com/getaxonflow/axonflow-sdk-go/v5 ``` -------------------------------- ### Run Python Example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/dynamic-policies/compliance/README.md Navigate to the 'python' directory, install the AxonFlow SDK, and run this command to execute the Python example. ```bash cd python pip install axonflow python main.py ``` -------------------------------- ### Install Dependencies and Start Application Source: https://github.com/getaxonflow/axonflow/blob/main/examples/llm-providers/azure-openai/sqli-scanning/typescript/README.md Run these commands to install the necessary Node.js packages and start the AxonFlow application. ```bash npm install npm start ``` -------------------------------- ### Start AxonFlow and Run Python Example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/README.md Instructions to start AxonFlow using Docker Compose and then run a Python integration example. ```bash # Start AxonFlow locally docker compose up -d # Choose an example and run it cd integrations/gateway-mode/python pip install -r requirements.txt python main.py ``` -------------------------------- ### Run Python SDK Example Source: https://github.com/getaxonflow/axonflow/blob/main/docs/guides/LOCAL_DEVELOPMENT_SETUP.md Steps to run a 'hello-world' example using the Python SDK. Navigate to the example directory and execute the main Python file. ```bash # Run example cd examples/hello-world/python python main.py ``` -------------------------------- ### Run Python Example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/code-governance/README.md Navigate to the python directory, configure environment variables, install dependencies, and run the main script. ```bash cd python cp .env.example .env # Edit with your settings pip install -r requirements.txt python main.py ``` -------------------------------- ### Run Java SDK Examples Source: https://github.com/getaxonflow/axonflow/blob/main/examples/cost-controls/README.md Navigate to the 'java' directory and run 'mvn compile exec:java' to execute the Java SDK examples. For local development, install the SDK locally using 'mvn install -DskipTests'. ```bash cd java mvn compile exec:java ``` ```bash # In SDK repo: mvn install -DskipTests mvn compile exec:java ``` -------------------------------- ### Install Python Dependencies Source: https://github.com/getaxonflow/axonflow/blob/main/examples/mcp-connectors/cloud-storage/README.md Before running the Python example, install the required packages using pip. ```bash cd python pip install -r requirements.txt ``` -------------------------------- ### Run TypeScript Example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/dynamic-policies/compliance/README.md Navigate to the 'typescript' directory, install the necessary npm packages, and run this command to execute the TypeScript example. ```bash cd typescript npm install @axonflow/sdk npx ts-node index.ts ``` -------------------------------- ### Run MAP Examples via Python Source: https://github.com/getaxonflow/axonflow/blob/main/examples/map/README.md Commands to install dependencies and execute core, lifecycle, and enterprise confirm mode examples using Python. ```python cd map/python && pip install -r requirements.txt && python main.py cd map-lifecycle/python && pip install -r requirements.txt && python main.py cd map-confirm-mode/python && pip install -r requirements.txt && python main.py # Enterprise only ``` -------------------------------- ### Run AxonFlow Quick Start Source: https://github.com/getaxonflow/axonflow/blob/main/examples/workflows/README.md Commands to navigate to the simple sequential example directory, configure the environment, and execute the workflow. ```bash cd examples/workflows/01-simple-sequential cp .env.example .env # Edit .env with your configuration go run main.go ``` -------------------------------- ### Run Python SDK Example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/version-check/README.md Install Python SDK dependencies and run the main script. For local SDK testing, install the SDK in editable mode. ```bash cd python pip install -r requirements.txt # For local SDK testing: pip install -e /path/to/axonflow-sdk-python python main.py ``` -------------------------------- ### Running Python Example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/webhooks/README.md Install Python dependencies and run the main Python script from the python directory. ```bash cd python && pip install -r requirements.txt && python main.py ``` -------------------------------- ### Install Dependencies and Run Python Provider Routing Example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/llm-routing/README.md Installs the axonflow Python package and runs the provider_routing.py script. Ensure AXONFLOW_ENDPOINT is set. ```bash cd python pip install axonflow AXONFLOW_ENDPOINT=http://localhost:8080 python provider_routing.py ``` -------------------------------- ### Install Dependencies and Run Create Policy Example (TypeScript) Source: https://github.com/getaxonflow/axonflow/blob/main/examples/policies/README.md Install Node.js dependencies and execute the script to create a custom policy using the TypeScript SDK. ```bash cd typescript npm install npm run create ``` -------------------------------- ### Run Policy Examples Source: https://github.com/getaxonflow/axonflow/blob/main/examples/policies/go/README.md Commands to execute the provided example scripts. ```bash go run create_custom_policy.go go run list_and_filter.go go run test_pattern.go ``` -------------------------------- ### Run Integration Examples Source: https://github.com/getaxonflow/axonflow/blob/main/examples/integrations/langchain/README.md Execute the provided example scripts to test governance integration. ```bash # Basic LLM call with governance python main.py # LangChain chains with governance python chain_example.py # RAG pipeline with governance python rag_example.py ``` -------------------------------- ### Run Frontend Locally Source: https://github.com/getaxonflow/axonflow/blob/main/examples/support-demo/README.md Navigate to the frontend directory and start the React development server. Ensure Node.js dependencies are installed. ```bash cd frontend npm install npm start ``` -------------------------------- ### Quick Start Execution Commands Source: https://github.com/getaxonflow/axonflow/blob/main/examples/llm-providers/mistral/hello-world/README.md Commands to configure the API key and run the Mistral integration examples across different environments. ```bash # Set your Mistral API key export MISTRAL_API_KEY=your-api-key # HTTP (cURL) cd http && ./mistral.sh # Go cd go && go run main.go # Python cd python && pip install -r requirements.txt && python main.py # TypeScript cd typescript && npm install && npx tsx index.ts # Java cd java && mvn exec:java -q ``` -------------------------------- ### Run Java Example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/execution-tracking/README.md Compile and execute the Java example using Maven. ```bash cd java mvn compile exec:java -Dexec.mainClass="com.getaxonflow.examples.ExecutionTrackingExample" ``` -------------------------------- ### Running TypeScript Example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/webhooks/README.md Install Node.js dependencies and execute the TypeScript entry point using ts-node. ```bash cd typescript && npm install && npx ts-node src/index.ts ``` -------------------------------- ### Run AxonFlow Examples Source: https://github.com/getaxonflow/axonflow/blob/main/examples/hello-world/README.md Commands to initialize and run the provided language-specific examples. ```bash cd typescript npm install AGENT_URL=http://localhost:8080 npm start ``` ```bash cd python pip install -r requirements.txt AGENT_URL=http://localhost:8080 python main.py ``` ```bash cd go AGENT_URL=http://localhost:8080 go run main.go ``` ```bash cd java mvn compile exec:java ``` ```bash cd http ./hello-world.sh ``` -------------------------------- ### Run Custom Router Example Source: https://github.com/getaxonflow/axonflow/blob/main/platform/examples/custom-router/README.md Commands to execute the provided custom router example. ```bash cd platform/examples/custom-router go run main.go ``` -------------------------------- ### Install Dependencies and Run Main Script Source: https://github.com/getaxonflow/axonflow/blob/main/examples/llm-providers/azure-openai/pii-detection/python/README.md Install the required Python packages and then execute the main application script. Ensure Python 3.10+ is installed. ```bash pip install -r requirements.txt python main.py ``` -------------------------------- ### Run Singapore PII Detection Example Source: https://github.com/getaxonflow/axonflow/blob/main/docs/guides/pii-detection.md Execute the example project for Singapore PII detection by navigating to the example directory, installing dependencies, and starting the application. Alternatively, use the provided script to run end-to-end tests against Docker Compose. ```bash # Run the Singapore PII example cd examples/singapore-pii npm install npm start # Or run the E2E test script against Docker Compose ./scripts/test-singapore-pii.sh ``` -------------------------------- ### Run Example Scripts Source: https://github.com/getaxonflow/axonflow/blob/main/examples/integrations/gateway-mode/typescript/README.md Execute the provided TypeScript examples for different LLM providers. ```bash # OpenAI example npm run start:openai # Anthropic Claude example npm run start:anthropic # Default (OpenAI) npm start ``` -------------------------------- ### Run Go SDK Examples Source: https://github.com/getaxonflow/axonflow/blob/main/examples/cost-controls/README.md Navigate to the 'go' directory and run 'go mod download' followed by 'go run main.go' to execute the Go SDK examples. For local development, uncomment the replace directive in go.mod. ```bash cd go go mod download go run main.go ``` ```bash # Uncomment the replace directive in go.mod go run main.go ``` -------------------------------- ### Run Python SDK Example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/static-policies/README.md Sets up a virtual environment and executes the Python SDK demonstration script. ```bash cd python python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate pip install axonflow python main.py ``` -------------------------------- ### Run TypeScript Audit Logging Example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/audit-logging/README.md Install Node.js dependencies and execute the TypeScript example using ts-node. Ensure npm is installed. ```bash cd typescript npm install npx ts-node index.ts ``` -------------------------------- ### Run Hello World Example Source: https://github.com/getaxonflow/axonflow/blob/main/docs/getting-started.md Execute the provided example script for the hello-world application. ```bash cd examples/hello-world/http ./example.sh ``` -------------------------------- ### Manual Database Setup Source: https://github.com/getaxonflow/axonflow/blob/main/docs/guides/LOCAL_DEVELOPMENT_SETUP.md Initialize the PostgreSQL database and run migrations without Docker. ```bash # Start PostgreSQL (if not running) brew services start postgresql@15 # macOS # or sudo systemctl start postgresql # Linux # Create database createdb axonflow # Run migrations psql axonflow < platform/agent/migrations/001_initial.sql psql axonflow < platform/orchestrator/migrations/001_initial.sql ``` -------------------------------- ### Execute TypeScript Policy Examples Source: https://github.com/getaxonflow/axonflow/blob/main/examples/workflow-policy/README.md Install dependencies and run the TypeScript SDK policy enforcement example. ```bash cd typescript npm install npx tsx main.ts ``` -------------------------------- ### Run TypeScript Governance Examples Source: https://github.com/getaxonflow/axonflow/blob/main/examples/integrations/governed-tools/README.md Installs dependencies and executes the TypeScript SDK example using ts-node. ```bash cd typescript npm install npx ts-node src/index.ts ``` -------------------------------- ### Run Create Policy Example (Go) Source: https://github.com/getaxonflow/axonflow/blob/main/examples/policies/README.md Execute the Go program to create a custom policy using the Go SDK. ```bash cd go go run create_custom_policy.go ``` -------------------------------- ### Get Provider Health Response Example Source: https://github.com/getaxonflow/axonflow/blob/main/docs/reference/llm-architecture.md Example JSON response for the health status of an LLM provider. ```json { "name": "my-anthropic", "health": { "status": "healthy", "latency_ms": 245, "message": "Provider is responsive", "last_checked": "2025-01-15T10:30:00Z" } } ``` -------------------------------- ### Get Provider Response Example Source: https://github.com/getaxonflow/axonflow/blob/main/docs/reference/llm-architecture.md Example JSON response when retrieving details for a single LLM provider. ```json { "provider": { "name": "my-anthropic", "type": "anthropic", "endpoint": "https://api.anthropic.com", "model": "claude-sonnet-4-20250514", "enabled": true, "priority": 1, "weight": 100, "rate_limit": 60, "timeout_seconds": 30, "has_api_key": true, "settings": {}, "health": { "status": "healthy", "message": "Provider is responsive", "last_checked": "2025-01-15T10:30:00Z" } } } ``` -------------------------------- ### Install Dependencies and Run Backend Source: https://github.com/getaxonflow/axonflow/blob/main/examples/support-demo/backend/README.md Commands to set up the Go environment, install project dependencies, configure necessary API keys, and run the backend server. Requires PostgreSQL to be running. ```bash # Install dependencies go mod download # Set environment variables export OPENAI_API_KEY=sk-your-key # OR export ANTHROPIC_API_KEY=sk-ant-your-key # Run (requires PostgreSQL) go run . # Run tests go test -v ./... ``` -------------------------------- ### Running Go Example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/webhooks/README.md Navigate to the go directory and run the main Go program. ```bash cd go && go run main.go ``` -------------------------------- ### Install LLM Provider SDK Source: https://github.com/getaxonflow/axonflow/blob/main/docs/sdk/llm-sdk-guide.md Use 'go get' to install the LLM provider SDK for your Go project. ```bash go get github.com/getaxonflow/axonflow/platform/orchestrator/llm ``` -------------------------------- ### Initialize Go Module and Run Go Provider Routing Example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/llm-routing/README.md Initializes a Go module, fetches the AxonFlow SDK, and runs the provider_routing.go program. Ensure AXONFLOW_ENDPOINT is set. ```bash cd go go mod init example go get github.com/getaxonflow/axonflow-sdk-go/v5 AXONFLOW_ENDPOINT=http://localhost:8080 go run provider_routing.go ``` -------------------------------- ### Run Go Example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/dynamic-policies/compliance/README.md Navigate to the 'go' directory and run this command to execute the Go example demonstrating AxonFlow dynamic policies. ```bash cd go go run main.go ``` -------------------------------- ### Install Python SDK Source: https://github.com/getaxonflow/axonflow/blob/main/docs/guides/LOCAL_DEVELOPMENT_SETUP.md Command to install the AxonFlow Python SDK using pip. This is required before running Python examples. ```bash pip install axonflow-sdk ``` -------------------------------- ### Create and Monitor a Plan in Go Source: https://github.com/getaxonflow/axonflow/blob/main/docs/guides/execution-tracking.md This Go example shows how to initialize the AxonFlow client, create a plan, and then poll for its status, including progress and step information. Ensure the necessary environment variables (AXONFLOW_ENDPOINT, AXONFLOW_CLIENT_ID, AXONFLOW_CLIENT_SECRET) are set. ```go package main import ( "fmt" "os" "time" "github.com/getaxonflow/axonflow-sdk-go/v5" ) func main() { client := axonflow.NewClient(axonflow.AxonFlowConfig{ Endpoint: os.Getenv("AXONFLOW_ENDPOINT"), ClientID: os.Getenv("AXONFLOW_CLIENT_ID"), ClientSecret: os.Getenv("AXONFLOW_CLIENT_SECRET"), }) // Create and execute a plan plan, _ := client.Plans.Create(axonflow.CreatePlanRequest{ Query: "Analyze sales data for Q4", Domain: "finance", }) // Poll for status for { status, _ := client.Plans.GetStatus(plan.PlanID) fmt.Printf("Progress: %.1f%%\n", status.ProgressPercent) fmt.Printf("Status: %s\n", status.Status) fmt.Printf("Duration: %s\n", status.Duration) // Show step progress for _, step := range status.Steps { fmt.Printf(" %s: %s\n", step.StepName, step.Status) } if status.IsTerminal() { if status.ActualCostUSD != nil { fmt.Printf("Total cost: $%.4f\n", *status.ActualCostUSD) } break } time.Sleep(time.Second) } } ``` -------------------------------- ### Start AxonFlow Services Source: https://github.com/getaxonflow/axonflow/blob/main/examples/dynamic-policies/compliance/README.md This bash command starts the AxonFlow services using Docker Compose. Ensure Docker is installed and running. ```bash docker compose up -d ``` -------------------------------- ### Run TypeScript Cloud Storage Example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/mcp-connectors/cloud-storage/README.md Execute this command to run the TypeScript example using ts-node. Ensure Node.js is installed. ```bash npx ts-node src/index.ts ``` -------------------------------- ### Run HTTP Connector Example in Go Source: https://github.com/getaxonflow/axonflow/blob/main/examples/mcp-connectors/http/README.md Executes the Go-based HTTP connector example from the project directory. ```bash cd examples/mcp-connectors/http/go go run main.go ``` -------------------------------- ### Install TypeScript SDK Source: https://github.com/getaxonflow/axonflow/blob/main/docs/guides/LOCAL_DEVELOPMENT_SETUP.md Command to install the AxonFlow TypeScript SDK using npm. This is the first step before running TypeScript examples. ```bash npm install @axonflow/sdk ``` -------------------------------- ### Run Python MCP Connector Example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/mcp-connectors/README.md Install the requests library and then run the main Python script to execute the MCP connector example. ```bash cd python pip install requests python main.py ``` -------------------------------- ### Run Go SDK Example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/version-check/README.md Navigate to the Go SDK directory and run the main application. For local testing, ensure a replace directive is added to go.mod. ```bash cd go # For local SDK testing: add replace directive to go.mod go run main.go ``` -------------------------------- ### Run MCP Audit Logging Example (Python) Source: https://github.com/getaxonflow/axonflow/blob/main/examples/mcp-audit/README.md Executes the MCP audit logging example written in Python. Ensure you have installed the dependencies. ```bash cd python python main.py ``` -------------------------------- ### Install AxonFlow SDKs Source: https://github.com/getaxonflow/axonflow/blob/main/README.md Install the AxonFlow SDK for your preferred language. Use pip for Python, npm for TypeScript, and go get for Go. ```bash pip install axonflow # Python ``` ```bash npm install @axonflow/sdk # TypeScript ``` ```bash go get github.com/getaxonflow/axonflow-sdk-go/v4 # Go ``` -------------------------------- ### Setup Test Environment Source: https://github.com/getaxonflow/axonflow/blob/main/platform/test/integration/README.md Initializes the test database, applies migrations, and generates the .env.test configuration file. ```bash cd /Users/saurabhjain/Development/axonflow/platform/test/integration ./setup_test_env.sh ``` -------------------------------- ### Run MAP Examples via TypeScript Source: https://github.com/getaxonflow/axonflow/blob/main/examples/map/README.md Commands to install dependencies and execute core, lifecycle, and enterprise confirm mode examples using Node.js. ```typescript cd map/typescript && npm install && npm start cd map-lifecycle/typescript && npm install && npm start cd map-confirm-mode/typescript && npm install && npm start # Enterprise only ``` -------------------------------- ### Run MCP Audit Logging Example (TypeScript) Source: https://github.com/getaxonflow/axonflow/blob/main/examples/mcp-audit/README.md Executes the MCP audit logging example written in TypeScript using tsx. Ensure you have installed the dependencies. ```bash cd typescript npx tsx index.ts ``` -------------------------------- ### Run Python Audit Logging Example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/audit-logging/README.md Install Python dependencies and run the main Python script for the audit logging example. Ensure requirements.txt is present. ```bash cd python pip install -r requirements.txt python main.py ``` -------------------------------- ### Run policy examples Source: https://github.com/getaxonflow/axonflow/blob/main/examples/policies/java/README.md Execute the provided example classes using Maven profiles or direct class specification. ```bash # Run individual examples mvn compile exec:java -Pcreate mvn compile exec:java -Plist mvn compile exec:java -Ptest-pattern # Or specify the main class directly mvn compile exec:java -Dexec.mainClass="com.getaxonflow.examples.policies.CreateCustomPolicy" mvn compile exec:java -Dexec.mainClass="com.getaxonflow.examples.policies.ListAndFilter" mvn compile exec:java -Dexec.mainClass="com.getaxonflow.examples.policies.TestPattern" ``` -------------------------------- ### Install Dependencies and Run TypeScript Provider Routing Example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/llm-routing/README.md Installs necessary npm packages and executes the TypeScript provider-routing.ts script. Ensure AXONFLOW_ENDPOINT is set. ```bash cd typescript npm install AXONFLOW_ENDPOINT=http://localhost:8080 npx ts-node provider-routing.ts ``` -------------------------------- ### Run TypeScript HITL example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/hitl/README.md Install dependencies and execute the TypeScript implementation. ```bash cd typescript npm install npm run example ``` -------------------------------- ### Install Python HTTP Requirements Source: https://github.com/getaxonflow/axonflow/blob/main/examples/mcp-policies/check-endpoints/README.md Install the necessary Python packages for making raw HTTP requests to AxonFlow endpoints. This is required before running the Python HTTP example. ```bash cd python-http pip install -r requirements.txt ``` -------------------------------- ### Start AxonFlow and Check Health Source: https://github.com/getaxonflow/axonflow/blob/main/examples/integrations/codex/README.md Starts the AxonFlow service using Docker Compose and then checks its health status. Ensure AxonFlow is running before proceeding with plugin setup. ```bash # 1. Start AxonFlow docker compose up -d curl -s http://localhost:8080/health | jq .status ``` -------------------------------- ### Run Python HITL example Source: https://github.com/getaxonflow/axonflow/blob/main/examples/hitl/README.md Install requirements and execute the Python policy script. ```bash cd python pip install -r requirements.txt python require_approval_policy.py ``` -------------------------------- ### Run MAP Examples via Go Source: https://github.com/getaxonflow/axonflow/blob/main/examples/map/README.md Commands to execute core, lifecycle, and enterprise confirm mode examples using the Go runtime. ```go cd map/go && go run main.go cd map-lifecycle/go && go run main.go cd map-confirm-mode/go && go run main.go # Enterprise only ``` -------------------------------- ### Get Template Request Source: https://github.com/getaxonflow/axonflow/blob/main/docs/reference/policy-templates.md Example cURL request to retrieve a specific template by its ID. ```bash curl -X GET "http://localhost:8080/api/v1/templates/general_rate_limiting" \ -H "X-Client-Id: demo-org" \ -H "X-Client-Secret: your-license-key" \ -H "X-Org-ID: tenant-123" ```