zurvan
A small, composable Python framework for building goal-directed LLM agents.
What it is
zurvan runs a GAME loop — Goals, Actions, Memory, Environment — over
an LLM. Behaviour like plan-first, time-aware, prompt-injection-resistant,
or progress-tracking is composed by passing a list of Capability
instances rather than by subclassing Agent. With no capabilities it
reduces to a plain Goals → Actions → Memory cycle.
LLM providers are abstracted behind AgentLanguage. Built-in subclasses
(via LiteLLM) cover OpenAI, Gemini,
and Groq.
Install
pip install zurvan
Requires Python 3.11+.
Quick start
from zurvan import (
Action,
ActionRegistry,
Agent,
AgentFunctionCallingActionLanguageOpenAI,
Environment,
Goal,
)
def terminate(message: str) -> str:
return message
actions = ActionRegistry()
actions.register(Action(
name="terminate",
function=terminate,
description="End the conversation with a final message.",
parameters={
"type": "object",
"properties": {"message": {"type": "string"}},
"required": ["message"],
},
terminal=True,
))
agent = Agent(
goals=[Goal(priority=1, name="Greet", description="Greet the user warmly.")],
agent_language=AgentFunctionCallingActionLanguageOpenAI(model="openai/gpt-4o-mini"),
action_registry=actions,
environment=Environment(),
)
memory = agent.run("Say hi.")
Pydantic-validated tool inputs
Action accepts either a JSON-Schema dict (parameters=) or a Pydantic
model (input_model=). With a model, the schema sent to the LLM is
derived from the model and the model's args are validated before the
function runs — a ValidationError is caught by Environment and
fed back to the LLM as a failed-tool result, so the model gets a chance
to retry with corrected args.
from typing import Literal
from pydantic import BaseModel
from zurvan import Action
class GetWeatherArgs(BaseModel):
city: str
unit: Literal["c", "f"] = "c"
def get_weather(city: str, unit: str = "c") -> str:
return f"It's nice in {city} ({unit}°)"
action = Action(
name="get_weather",
function=get_weather,
description="Look up the weather for a city.",
input_model=GetWeatherArgs,
)
parameters= and input_model= are mutually exclusive — pass exactly one.
Capabilities
Capabilities hook into every loop phase (init, start_agent_loop,
process_prompt, process_response, process_action, process_result,
process_new_memories, end_agent_loop, should_terminate,
terminate). Compose them — don't subclass Agent.
from zurvan import Agent, CanaryCapability, TimeAwareCapability
agent = Agent(
...,
capabilities=[CanaryCapability(), TimeAwareCapability()],
)
License
MIT.
Metadata
Release files for zurvan 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zurvan-0.1.0.tar.gz | 25.5 kB | With provenance | Details for zurvan-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zurvan-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for zurvan-0.1.0-py3-none-any.whl |
Total release size: 61.4 kB
Release files / zurvan-0.1.0.tar.gz
| Download URL | zurvan-0.1.0.tar.gz |
|---|---|
| Size | 25.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d3146afbc79900889c98162f02bea19fa96ffa6f94c4a4b6a5cfcadde6d57f7f
|
|
BLAKE2b-256 checksum How to use checksums |
ddb6e1029f40daaa74869a55c05523fb2a49ef30abb9d032039157781034e571
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 8, 2026.
Transparency logRelease files / zurvan-0.1.0-py3-none-any.whl
| Download URL | zurvan-0.1.0-py3-none-any.whl |
|---|---|
| Size | 35.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6a5a9217b926bc21945cdca0fe85e5867900cbf4d2df402fe94ceb3bc0ff80a2
|
|
BLAKE2b-256 checksum How to use checksums |
1402d33ee833b0061f76e0a4901e3eccaf27a4d97edf9f5000d991f5ea19cadf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 8, 2026.
Transparency logSecurity for zurvan 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for zurvan-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 8, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.