AgentLogs
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
import pyarrow.parquet as pq
from huggingface_hub import snapshot_download
from agentlogs.schema import AgentSession, assert_dataset_version, cast_record
# Full dataset into data/dataset/; existing files are skipped
dataset_path = Path("data") / "dataset"
snapshot_download(
repo_id="risenlab/agentlogs",
repo_type="dataset",
revision="v0.2",
local_dir=dataset_path,
)
# Fail if the snapshot tag does not match this package version
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_record(
AgentSession,
pq.read_table(session_file, memory_map=False).slice(0, 1).to_pylist()[0],
)
print(session["id"], session["name"])
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file risenlab_agentlogs-0.2.tar.gz.
File metadata
- Download URL: risenlab_agentlogs-0.2.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
158d4a8d3fc4e6b7de21c787314e29556beb278f8a965b534c66525ee15cd87b
|
|
| MD5 |
50bc436a81912b609c31de1ca3f17e52
|
|
| BLAKE2b-256 |
d456855193b0391e52d275212f4c3bc0d135f6fd3695411c36e297d162d1964e
|
File details
Details for the file risenlab_agentlogs-0.2-py3-none-any.whl.
File metadata
- Download URL: risenlab_agentlogs-0.2-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c631ada11c0493abcaee554b47cb6b97ef36d85866fab68a4bf640987a5e044a
|
|
| MD5 |
04c2c6d05569bd21f6d17c1a3f68c9a3
|
|
| BLAKE2b-256 |
f9ef6c44207901f7c9871240bee38f7604275569a2a06dd67894890292fbd15f
|