Skip to main content

AgentLogs

version 0.2 Hugging Face GitHub

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

risenlab_agentlogs-0.2.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

risenlab_agentlogs-0.2-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

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

Hashes for risenlab_agentlogs-0.2.tar.gz
Algorithm Hash digest
SHA256 158d4a8d3fc4e6b7de21c787314e29556beb278f8a965b534c66525ee15cd87b
MD5 50bc436a81912b609c31de1ca3f17e52
BLAKE2b-256 d456855193b0391e52d275212f4c3bc0d135f6fd3695411c36e297d162d1964e

See more details on using hashes here.

File details

Details for the file risenlab_agentlogs-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for risenlab_agentlogs-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c631ada11c0493abcaee554b47cb6b97ef36d85866fab68a4bf640987a5e044a
MD5 04c2c6d05569bd21f6d17c1a3f68c9a3
BLAKE2b-256 f9ef6c44207901f7c9871240bee38f7604275569a2a06dd67894890292fbd15f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2 This release

2 files

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