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

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.13.3
File Size Uploaded Provenance Actions
rqark_app-0.13.3.tar.gz 152.1 kB Without provenance Details for rqark_app-0.13.3.tar.gz

Built distribution (wheel)

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

Total release size: 203.8 kB

Release files / rqark_app-0.13.3.tar.gz

Download URL rqark_app-0.13.3.tar.gz
Size 152.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2bc16b9f47c55b43b69f3d5a2855a62a10b44e5767b16fe4de43ca49b86de967
BLAKE2b-256 checksum
How to use checksums
1ec7b0c7fa1e4f42204510d2a5dc60ead65956dac24858396405ed85cb0d5845
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.13.3-py3-none-any.whl

Download URL rqark_app-0.13.3-py3-none-any.whl
Size 51.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b3b1260415373c5d7ba432c87a7fa471720b3477b562191ae9e1d9a4b3251e0
BLAKE2b-256 checksum
How to use checksums
afeb8df4095ed0b2ef20ffe9faebbf39325bc4f135e846e3ff8e45da774a9053
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.13.3

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