AgentLogs
ℹ️ Note: This package contains the schema
v1.0, which only works with dataset releases1.0-xxxxxxxx
TypedDict schema and helpers for the AgentLogs dataset. Field-level documentation: schema reference.
Installation
pip install risenlab-agentlogs huggingface_hub pyarrow
Usage
from pathlib import Path
from typing import cast
import pyarrow.parquet as pq
from huggingface_hub import snapshot_download
from agentlogs.schema import AgentSession, assert_dataset_version
# Full dataset into data/dataset/; existing files are skipped
dataset_path = Path("data") / "dataset"
snapshot_download(
repo_id="risenlab/agentlogs",
repo_type="dataset",
revision="1.0-xxxxxxxx",
local_dir=dataset_path,
)
# Fail if the snapshot schema does not match this package
assert_dataset_version(dataset_path)
# First session row, typed as AgentSession (nested fields included)
session_file = next((dataset_path / "agent_sessions").glob("*.parquet"))
session = cast(
AgentSession,
pq.read_table(session_file, memory_map=False).slice(0, 1).to_pylist()[0],
)
print(session["id"], session["name"])
Metadata
Release files for risenlab-agentlogs 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| risenlab_agentlogs-1.0.0.tar.gz | 11.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| risenlab_agentlogs-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.6 kB
Release files / risenlab_agentlogs-1.0.0.tar.gz
| Download URL | risenlab_agentlogs-1.0.0.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e51c22d255c46084a7b28d21a5ec3f69bdbe12292cd98dcca24a2586aff7a80
|
|
BLAKE2b-256 checksum How to use checksums |
06bbb6aafaded1dd038f8659a4d256317259c7297ca887fdf02bea7ab03253dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / risenlab_agentlogs-1.0.0-py3-none-any.whl
| Download URL | risenlab_agentlogs-1.0.0-py3-none-any.whl |
|---|---|
| Size | 17.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ff2d5a538cad8774fc33dfb6fe2581dd479e2890154920b4aaa73788d49b0b5a
|
|
BLAKE2b-256 checksum How to use checksums |
b1cb34fa953f761be380eaed407f1bcdaa1a84a46ab83bbb20fb3845e7bbbae3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|