aipype-extras - Optional Tools

The aipype-extras package provides optional tools and utilities that extend the core aipype framework functionality.

Note

This package is optional and provides additional tools for debugging, logging, and monitoring aipype workflows.

Package Overview

aipype-extras: Extra features and tools for the aipype framework.

class LogEntry[source]

Bases: object

Represents a single LLM log entry.

Parameters:
__init__(timestamp, agent_name, task_name, provider, model, input, output, raw_line, index)
Parameters:
timestamp: str
agent_name: Optional[str]
task_name: str
provider: str
model: str
input: Dict[str, Any]
output: Dict[str, Any]
raw_line: str
index: int
class LLMLogReader[source]

Bases: object

Handles reading and parsing LLM log files.

Parameters:

log_file_path (str)

__init__(log_file_path)[source]
Parameters:

log_file_path (str)

get_total_log_count()[source]

Get total number of log entries.

Return type:

int

read_logs(start_index=0, count=50, reverse=True)[source]

Read log entries from file.

Parameters:
Return type:

List[LogEntry]