Skip to main content

rqark-app

Session, provider and agent management on top of rqark-core, with an optional data cloud for memory, todos and settings.

Why rqark-app

rqark-core runs one conversation. This keeps it: turns are stored and can be resumed, a failed provider rotates to the next one, and a finished turn is recorded without anyone calling a tool.

Installation

Requires Python 3.14+.

uv add rqark-app
# or
pip install rqark-app

Quick Start

import asyncio

from rqark_core.types.chat import Chunk
from rqark_core.types.event import AgentPayload
from rqark_core.types.provider import Provider

from rqark_app.agent.agents import Wednesday
from rqark_app.app import AgentApp
from rqark_app.session.storage import JSONLStorage

provider = Provider(model_name='gpt-5', api_base='https://api.openai.com/v1', priority=0, api_key='sk-...')

app = AgentApp([provider], storage=JSONLStorage('./.sessions'))


@app.on_content()
async def print_content(ev: AgentPayload[Chunk]):
    print(ev.payload.content, end='', flush=True)


async def main():
    session = await app.chat('Who are you?', Wednesday(), path=('demo',))
    print(session.uuid)


asyncio.run(main())

App

Events

  • on_think
  • on_content
  • on_tool_calls
  • on_tool_result
  • on_usage
  • on_error
  • on_message
  • on_plan
  • on_provider_switched

Retry

APIError reports a failure to the ProviderManager; three consecutive failures rotate the provider. A context overflow asks the Compactor for a summary, appends it to the history, and retries from the last chunk. Anything else is raised.

session.plan_items is seeded back into each new core, so plan_update sees the running plan instead of "No active plan".

Managers

Session

  • SessionManager
  • Session
  • SessionStorage
  • JSONLStorage
  • CloudStorage

Provider

  • ProviderManager

Agent

  • AgentManager
  • BaseAgent
  • Wednesday
  • Diana
  • AgentHoliday

Config

  • ConfigManager
  • DirCache
  • SopManager

Cloud

cloud.yml needs enabled, url and api_key. Once configured the cloud is the only source; there is no fallback to local files and a failed load raises DataCloudError.

  • RQArkDataCloudClient
  • CloudStorage
  • DataCloudError — REQUEST_FAILED unreachable, INVALID_RESPONSE not JSON, anything else is a 4xx/5xx from the cloud

Default agent

One per source, stored in the cloud and shared across clients. set_default_agent() and clear_default_agent() write it back; the agent needs an id from the cloud.

Memory

  • TurnMemoryWriter
  • MemorySettings
  • MemorySave
  • MemorySearch

Tools

Memory

  • MemorySave
  • MemorySearch

Cloud

  • Todo
  • Task

SOP

  • SopManager
  • Sop

Metadata

Release files for rqark-app 0.11.9

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

Source distribution (sdist)

Source distribution for rqark-app 0.11.9
File Size Uploaded Provenance Actions
rqark_app-0.11.9.tar.gz 146.7 kB Without provenance Details for rqark_app-0.11.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rqark-app 0.11.9
File Interpreter ABI Platform Actions
rqark_app-0.11.9-py3-none-any.whl Python 3 none any Details for rqark_app-0.11.9-py3-none-any.whl

Total release size: 197.2 kB

Release files / rqark_app-0.11.9.tar.gz

Download URL rqark_app-0.11.9.tar.gz
Size 146.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8f84618d0ca9da69d99509a681a475e7675df5eed06596f3a6bd99b39b1ffab3
BLAKE2b-256 checksum
How to use checksums
a2fa83bf5cd019c29995f1b4c11349ff68f48d14fd1308e969265a20c3bd9bbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / rqark_app-0.11.9-py3-none-any.whl

Download URL rqark_app-0.11.9-py3-none-any.whl
Size 50.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b6942a5b358f14fa8efae0d737ab74560dff58560341fe32f4ca3fe118fa0f17
BLAKE2b-256 checksum
How to use checksums
9fbf3008af6f9d3ea0635e38d76da3274220dc893985a1aa84f14dab44cbbb03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for rqark-app 0.11.9

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

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