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

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.8
File Size Uploaded Provenance Actions
rqark_app-0.11.8.tar.gz 146.2 kB Without provenance Details for rqark_app-0.11.8.tar.gz

Built distribution (wheel)

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

Total release size: 196.4 kB

Release files / rqark_app-0.11.8.tar.gz

Download URL rqark_app-0.11.8.tar.gz
Size 146.2 kB
Tags Source
SHA-256 checksum
How to use checksums
dfa64dda7addb03f5648091fd17f6129e82ca51083366787f552fe9a48c22294
BLAKE2b-256 checksum
How to use checksums
f76d5d3ab042cf5fb9d25f42473a633701efeb19c8201773e319dcae32ccb1f5
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.8-py3-none-any.whl

Download URL rqark_app-0.11.8-py3-none-any.whl
Size 50.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ffafaabd1b93367da5d2bfc3e38c399f3d24fdcd0840dbac886e203c75bf2f5
BLAKE2b-256 checksum
How to use checksums
ef84a5f3c4afdf7f2932e8b800b1f98d4e04351134886fe36445310e4b7793ed
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.8

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