Current collected state Current
Observed since 20 Oct, 22:39 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Python prompt-core package for AgentMark - high-level runtime for working with AgentMark prompts
Python implementation of the AgentMark prompt-core package. This package provides the high-level runtime for working with AgentMark prompts.
pip install agentmark-prompt-core
This package transforms pre-parsed MDX AST trees. The AST is typically obtained by:
@agentmark-ai/templatedx packageimport asyncio
import json
from agentmark.prompt_core import create_agentmark, DefaultAdapter
async def main():
# Create an AgentMark instance with the default adapter
agentmark = create_agentmark(adapter=DefaultAdapter())
# Load a pre-parsed MDX AST (from TypeScript parser or JSON file)
with open("math.prompt.mdx.json") as f:
ast = json.load(f)
# Load and format a text prompt
prompt = await agentmark.load_text_prompt(ast)
result = await prompt.format(props={"userMessage": "What is 2+2?"})
print(result)
asyncio.run(main())
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Run linting
ruff check src tests
# Run type checking
mypy src/agentmark --strict
MIT
Known gaps vs @agentmark-ai/prompt-core, tracked as roadmap items:
built_in_models validation — TS createAgentMark({ builtInModels })
has no Python equivalent yet.Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.12.2 | 23 Jun 2026 | 9 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 22:39 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:cfa817831d29e64b12bad5f05b8aa85a85a28963673819d9b6fb7ed62f553666