Current collected state Current
Observed since 20 Oct, 21:08 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
AFM (Agent-Flavored Markdown) core: parser, CLI, protocols, and interfaces
Core library for Agent-Flavored Markdown (AFM) - providing parsing, validation, and interface implementations.
afm command with validation and run commandsThis package is typically installed as part of afm-cli. For development or custom integrations:
pip install afm-core
from afm.parser import parse_afm_file
# Parse an AFM file (returns an AFMRecord)
record = parse_afm_file("agent.afm.md")
# Access parsed data
print(f"Agent: {record.metadata.name}")
print(f"Model: {record.metadata.model.provider}/{record.metadata.model.name}")
print(f"Interfaces: {[i.type for i in record.metadata.interfaces]}")
print(f"Role: {record.role}")
print(f"Instructions: {record.instructions}")
This project uses uv for dependency management.
# Clone the repository
git clone https://github.com/wso2/reference-implementations-afm.git
cd python-interpreter
# Install dependencies
uv sync
# Run all tests
uv run pytest packages/afm-core/tests/
# Run with coverage
uv run pytest packages/afm-core/tests/ --cov=afm
# Format code
uv run ruff format
# Lint code
uv run ruff check
packages/afm-core/src/afm/
├── __init__.py
├── cli.py # CLI entry point
├── exceptions.py # Custom exceptions
├── models.py # Pydantic models
├── parser.py # AFM file parsing
├── runner.py # AgentRunner protocol and runner utilities
├── schema_validator.py # Schema validation
├── templates.py # Prompt templates
├── update.py # Update checker
├── variables.py # Variable substitution
└── interfaces/ # Interface implementations
├── __init__.py
├── base.py # Interface utilities (get_interfaces, get_http_path)
├── console_chat.py
├── web_chat.py
└── webhook.py
For comprehensive documentation, see the project README.
Apache-2.0
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.3.0 | 10 Apr 2026 | 11 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 21:08 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:f67096b708418b641b858c66cb84982da49e4b8bd6629b34db55cee714c531a2