Skip to main content

InfiAgent

InfiAgent is a long-horizon multi-agent framework built around three ideas: configuration-defined agents (an agent is YAML, not a class), a forgetting loop (short action windows + periodic thinking summaries + file relay), and a resumable execution stack (all conversation/stack/action state is persisted under a portable user_root/, so tasks survive interruption and resume across processes and machines).

pip install infiagent

This package ships the complete backend runtime: the agent execution loop, context builder, tool executor, the built-in level-0 tool suite, the LLM client with multi-provider deployment failover, the concurrency-safe experience store, and the SDK entry point, together with the full test suite.

Quick start

from infiagent import infiagent

agent = infiagent(
    user_data_root="./user_root",
    agent_library_dir="./user_root",
    default_agent_system="my_system",
    default_agent_name="alpha_agent",
    direct_tools=True,
)
result = agent.run("your task", task_id="./user_root/tasks/demo")

Agent systems are defined under user_root/agent_library/<system>/ (level_3_agents.yaml, level_0_tools.yaml, general_prompts.yaml); model access is configured in user_root/config/llm_config.yaml (single key, or a multi-provider deployments list with sticky-primary failover). Task state persists under user_root/tasks/<task_id>/ and user_root/conversations/, and interrupted tasks can be resumed.

Reliability characteristics

  • Crash-safe persistence: runtime state is written atomically (same-directory temp file + fsync + rename); corrupted legacy state files are quarantined automatically with a clean recovery path, and interrupted tool calls replay idempotently on resume.
  • Concurrency-safe experience store: cross-process file locks over the full read-modify-write, uuid entry ids, file revisions with optimistic concurrency checks, transactional dual-scope writes, and only status=active entries are injected into agent context.
  • Multi-provider LLM failover: a model may declare multiple deployments (keys/platforms); healthy traffic sticks to the primary to preserve provider-side prompt caching, failures cool down and fail over automatically.

License

GPL-3.0. See LICENSE.

Metadata

Release files for infiagent 3.12.24

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for infiagent 3.12.24
File Interpreter ABI Platform
infiagent-3.12.24-1-py3-none-any.whl Python 3 none any Details

Release files / infiagent-3.12.24-1-py3-none-any.whl

Download URL infiagent-3.12.24-1-py3-none-any.whl
Size 3.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
88908fc4f74c461bf00405505ae17a52aa65d1e1ac6631eccec38ee4dffc5240
BLAKE2b-256 checksum
How to use checksums
a51278b75f7a4830a339cc7aaec6970c177fc8dcb78328fb94701372dab96be2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Release history Release notifications | RSS feed

This release

3.12.24 This release

1 release file

3.2.5

2 release files

3.2.4

2 release files

3.2.3

2 release files

3.2.2

2 release files

3.2.1

2 release files

3.2.0

2 release files

3.1.2

2 release files

3.1.1

2 release files

3.1.0

2 release files

3.0.10

2 release files

3.0.9

2 release files

3.0.8

2 release files

3.0.7

2 release files

3.0.6

2 release files

3.0.5

2 release files

3.0.4

2 release files

3.0.3

2 release files

3.0.2

2 release files

3.0.1

2 release files

3.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page