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

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.2
File Size Uploaded Provenance Actions
rqark_app-0.13.2.tar.gz 151.8 kB Without provenance Details for rqark_app-0.13.2.tar.gz

Built distribution (wheel)

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

Total release size: 203.6 kB

Release files / rqark_app-0.13.2.tar.gz

Download URL rqark_app-0.13.2.tar.gz
Size 151.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ea4b2fae7c8ff3ad71597b54dd9f7e6f05c90d3d032f4d8ac762ab89e6d02082
BLAKE2b-256 checksum
How to use checksums
a4c2d76fdb1cae1ab94adc91ab3b9e8bfb4973a4dc233d617226c9627c872ba1
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.2-py3-none-any.whl

Download URL rqark_app-0.13.2-py3-none-any.whl
Size 51.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a4ee4eaef739a8902813eeb8f2679fd9b7af4d3a3e59ea88145b59b3c1193e6f
BLAKE2b-256 checksum
How to use checksums
29c8dbadeaa713f8fef654f1e8800ad909e172add8758d15eb2d6fc82f29233d
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.2

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