Example projects demonstrating OpenSymbolicAI usage.
This repository uses uv workspaces - each example is an independent project with its own dependencies.
examples-py/
├── pyproject.toml # Workspace root + shared dev tools
├── examples/
│ ├── date_agent/ # Each example is a workspace member
│ │ ├── pyproject.toml # Example-specific dependencies
│ │ ├── README.md
│ │ └── date_agent/ # Package directory
│ ├── another_example/
│ │ └── ...
cd examples/date_agent
uv sync
uv run python -m date_agent.main# Install all workspace dependencies
uv sync --all-packages
# Install pre-commit hooks
uv run pre-commit install
# Run linting
uv run ruff check .
# Run type checking
uv run mypy examples/
# Run tests
uv run pytest-
Create a new directory under
examples/:mkdir -p examples/my_example/my_example
-
Add a
pyproject.toml:[project] name = "my-example" version = "0.1.0" description = "Description of my example" requires-python = ">=3.12" dependencies = [ "opensymbolicai-core", # add other dependencies here ] [build-system] requires = ["hatchling"] build-backend = "hatchling.build"
-
Add your code in
my_example/ -
Add a
README.mdwith usage instructions