Skip to content

faramesh/faramesh-examples

Repository files navigation

Faramesh Examples

Example code demonstrating how to use Faramesh with various AI frameworks and tools.

Examples

Framework Integrations

  • langchain/ - LangChain integration examples
  • langgraph/ - LangGraph integration examples
  • llamaindex/ - LlamaIndex integration examples
  • crewai/ - CrewAI integration examples
  • autogen/ - AutoGen integration examples
  • mcp/ - MCP (Model Context Protocol) integration examples

Basic Examples

  • basic_submit.py - Basic Python SDK example
  • basic_submit.js - Basic Node.js SDK example
  • sdk_batch_submit.py - Batch submission example
  • sdk_submit_and_wait.py - Submit and wait example
  • sdk_policy_builder.py - Policy builder example

Gated Execution Examples

  • gated_execution.py - Non-bypassable execution gate pattern (Python)
  • gated_execution.js - Non-bypassable execution gate pattern (Node.js)

Docker

  • docker/ - Docker deployment examples

Action Files

  • file_apply.yaml - Example action YAML file
  • http_action.json - Example action JSON file

Getting Started

  1. Install Faramesh:

    pip install faramesh
    # or for Node.js
    npm install @faramesh/sdk
  2. Start the Faramesh server:

    faramesh serve
  3. Run an example:

    python examples/langchain/governed_agent.py

Documentation

Full documentation: https://github.com/faramesh/faramesh-docs

Repository

Source: https://github.com/faramesh/faramesh-examples

Related Repositories

License

Elastic License 2.0

About

faramesh-examples

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published