Skip to content

Data Science Agent v0.4.0

Choose a tag to compare

@nmlemus nmlemus released this 31 Dec 17:48
· 83 commits to main since this release

πŸŽ‰ v0.4.0 - Human-in-the-Loop Support

This release adds configurable Human-in-the-Loop (HITL) functionality, allowing human oversight at different points in the agent's execution.

✨ New Features

HITL Modes

Control agent autonomy with 5 configurable modes:

Mode Description
NONE Fully autonomous (default)
PLAN_ONLY Pause after plan generation for approval
ON_ERROR Pause when code execution fails
PLAN_AND_ANSWER Pause on plan + before final answer
FULL Pause before every code execution

CLI Support

dsagent "Analyze data" -d ./data --hitl plan_only

Python API

from dsagent import PlannerAgent, HITLMode, EventType

agent = PlannerAgent(model="gpt-4o", hitl=HITLMode.PLAN_ONLY)
agent.start()

for event in agent.run_stream("Analyze sales data"):
if event.type == EventType.HITL_AWAITING_PLAN_APPROVAL:
print(event.plan.raw_text)
agent.approve() # or agent.reject() / agent.modify_plan()

HITL Actions

  • approve() - Approve and continue
  • reject() - Abort execution
  • modify_plan() - Provide modified plan
  • modify_code() - Provide modified code
  • skip() - Skip current step
  • send_feedback() - Guide the agent

πŸ“¦ Installation

pip install datascience-agent==0.4.0

πŸ“ Full Changelog

v0.3.0...v0.4.0