Scan your whole stack
Latest version: v0.1.12
aw was last scanned on 23 Nov 2026 at version 0.1.12. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.1.12 LATEST | 23 Nov 2026 | No rules fired |
| 0.1.11 | 23 Nov 2026 | No rules fired |
| 0.1.10 | 23 Nov 2026 | No rules fired |
| 0.1.9 | 20 Oct 2026 | Not shown |
| 0.1.8 | 20 Oct 2026 | Not shown |
Findings for v0.1.12. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.1.12; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
An AI agent package for data preparation with a focus on modular, extensible workflows that follow best practices from modern agentic architectures.
pip install aw
# For LangChain code execution
pip install langchain langchain-experimental
# For cosmograph validation
pip install cosmograph
# For OpenAI LLM
pip install openai
# LLM calls go through aix (a dependency); oa is only an optional fallback
pip install 'aw[llm]'
from aw import load_for_cosmo
# Load and prepare data in one call
df, metadata = load_for_cosmo("data.csv")
# Use with cosmograph
from cosmograph import cosmo
params = metadata["preparing"]["metadata"]["validation_result"]["params"]
cosmo(df, **params)
from aw import LoadingAgent, PreparationAgent, Context
from aw.cosmo import basic_cosmo_validator
# Create context
context = Context()
# Step 1: Load data
loading_agent = LoadingAgent()
df, loading_meta = loading_agent.execute("data.csv", context)
print(f"Loaded {df.shape[0]} rows, {df.shape[1]} columns")
# Step 2: Prepare data
preparing_agent = PreparationAgent(
target="cosmo-ready", target_validator=basic_cosmo_validator()
)
prepared_df, prep_meta = preparing_agent.execute(df, context)
print(f"Prepared data: {prep_meta['validation_result']}")
from aw import create_cosmo_prep_workflow
# Create a complete workflow
workflow = create_cosmo_prep_workflow(max_retries=5)
# Run it
result_df, metadata = workflow.run("data.csv")
# Check results
if metadata["success"]:
print("Success!")
print(f"Steps executed: {[s['name'] for s in metadata['steps']]}")
else:
print(f"Failed at: {metadata.get('failed_at')}")
All agents implement the AgenticStep protocol:
def execute(
self, input_data: Any, context: MutableMapping[str, Any]
) -> tuple[ArtifactType, dict[str, Any]]:
"""Execute the agentic step following ReAct pattern"""
...
Each agent follows the Reason-Act-Observe loop:
from aw.validation import schema_validator, info_dict_validator, functional_validator
# Schema validation
from pydantic import BaseModel
class DataSchema(BaseModel):
x: float
y: float
validate = schema_validator(DataSchema)
# Info-dict validation
def compute_info(df):
return {"null_count": df.isnull().sum().sum()}
def check_info(info):
return info["null_count"] == 0, "No nulls allowed"
validate = info_dict_validator(compute_info, check_info)
# Functional validation (try the purpose)
def try_visualize(df):
return cosmograph.cosmo(df, points_x_by="x", points_y_by="y")
validate = functional_validator(try_visualize)
Supports both simple objects and callables with cascading defaults:
from aw import GlobalConfig, StepConfig
# Global defaults
global_config = GlobalConfig(llm="gpt-4", max_retries=3)
# Step-specific override
step_config = global_config.override(llm="gpt-3.5-turbo", max_retries=5)
# Or pass callables
def my_llm(prompt):
return "Response to: " + prompt
step_config = StepConfig(
llm=my_llm, # Function instead of string
validator=lambda x: (True, {}),
max_retries=3,
)
Safe code execution with extensibility:
from aw import CodeInterpreterTool
# Default (safe exec)
tool = CodeInterpreterTool()
result = tool("x = 5; y = x * 2; print(y)")
print(result.output) # "10"
# With LangChain backend
from aw import create_langchain_executor
tool = CodeInterpreterTool(executor=create_langchain_executor())
Sample and analyze files before loading:
from aw import FileSamplerTool
sampler = FileSamplerTool()
info = sampler("data.csv")
print(info["extension"]) # '.csv'
print(info["sample_text"]) # First 1024 bytes
Build your own agents following the pattern:
from aw.base import AgenticStep, StepConfig
from collections.abc import MutableMapping
from typing import Any
class MyCustomAgent:
"""Custom agent following AgenticStep protocol"""
def __init__(self, config: StepConfig = None):
self.config = config or StepConfig()
self.llm = self.config.resolve_llm()
self.validator = self.config.resolve_validator()
def execute(
self, input_data: Any, context: MutableMapping[str, Any]
) -> tuple[Any, dict]:
attempts = []
for attempt in range(self.config.max_retries):
# 1. Reason: Analyze situation
thought = self._analyze(input_data, attempts)
# 2. Act: Perform action
result = self._act(thought)
# 3. Observe: Validate
is_valid, info = self.validator(result)
attempts.append({"attempt": attempt, "info": info})
if is_valid:
context["my_agent"] = {"result": result, "info": info}
return result, {"success": True, "attempts": attempts}
return None, {"success": False, "attempts": attempts}
from aw import InteractiveWorkflow, LoadingAgent, PreparationAgent
workflow = InteractiveWorkflow()
workflow.add_step("loading", LoadingAgent(), require_approval=True)
workflow.add_step("preparing", PreparationAgent(), require_approval=False)
# Set custom approval callback
def approve(step_name, artifact, metadata):
print(f"\nStep '{step_name}' completed")
print(f"Artifact shape: {artifact.shape}")
return input("Continue? (y/n): ").lower() == "y"
workflow.set_approval_callback(approve)
# Run interactively
result, metadata = workflow.run_interactive("data.csv")
Create domain-specific validators:
from aw.validation import info_dict_validator
def compute_ml_info(df):
return {
"num_features": len(df.columns) - 1,
"num_samples": len(df),
"class_balance": df["target"].value_counts().to_dict(),
}
def check_ml_requirements(info):
if info["num_features"] < 5:
return False, "Need at least 5 features"
if info["num_samples"] < 100:
return False, "Need at least 100 samples"
return True, "ML ready"
ml_validator = info_dict_validator(compute_ml_info, check_ml_requirements)
from aw import create_data_prep_workflow
workflow = create_data_prep_workflow()
# Run only the loading step
df, metadata = workflow.run_partial("data.csv", stop_after="loading")
# Inspect intermediate result
print(f"Loaded {df.shape}")
# Continue with preparing
final_df, final_meta = workflow.run_partial(df, stop_after="preparing")
aw.dispatch assembles the chain decided in opsward ADR 0011: retrieval over a skills corpus answers only when its ranking is clear, and an LLM adjudicator sees the raw request plus the top-k candidates only on ambiguity. Nothing routes until a boundary is configured.
from aw.dispatch import skills_dispatch_chain, Adjudicator
chain = skills_dispatch_chain() # needs `pip install aw[ir]`
chain("open an issue for the client about the broken export") # -> 'ge-write-issue'
chain.trace("deploy the site") # layer, ranked candidates, reason
chain = skills_dispatch_chain(
adjudicate=Adjudicator()
) # escalate through aix.chat on ambiguity
aw.routing.ConfidentRetrievalStrategy is the generic piece (any search(query) -> [(candidate, score)]), with floor, absolute gap, relative rel_gap, and dedup_key.
The package follows these principles:
Mapping/MutableMapping from collections.abcaw/
├── __init__.py # Main exports
├── base.py # Core protocols and configs
├── validation.py # Three validation flavors
├── tools.py # Code execution and tools
├── utils.py # Helpers and facades
├── loading.py # LoadingAgent
├── preparing.py # PreparationAgent
├── cosmo.py # Cosmograph validators
└── orchestration.py # Workflow management
Contributions welcome! Key areas:
See LICENSE file.
Built following best practices from:
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.