Skip to content

Agent Connector 4.3.3: Add create_work_items_from_dataframe action#274

Merged
raivolink merged 1 commit into
mainfrom
feat-df-to-workitem
Jun 10, 2026
Merged

Agent Connector 4.3.3: Add create_work_items_from_dataframe action#274
raivolink merged 1 commit into
mainfrom
feat-df-to-workitem

Conversation

@raivolink

Copy link
Copy Markdown
Contributor

Summary

  • Adds create_work_items_from_dataframe() action that creates one Work Item per row of a named dataframe for a specified agent
  • Adds _fetch_dataframe() helper that handles multiple server versions (thread-scoped path for newer local servers, flat path for cloud/older servers) and both response formats (list[dict] and {"columns": [...], "rows": [...]})
  • Updates README with usage example and CHANGELOG with 4.3.3 entry
  • Bumps package version from 4.3.1 to 4.3.3

Test plan

  • Verify create_work_items_from_dataframe creates one Work Item per dataframe row with correct payload keys/values
  • Test against a newer local server (thread-scoped endpoint path)
  • Test against a cloud server (flat endpoint path, thread from invocation context header)
  • Confirm graceful error when dataframe name not found (404 on both paths)
  • Confirm ActionError is raised (not swallowed) on non-404 server errors

🤖 Generated with Claude Code

- new action for creating work items from dataframe
- docs
- changelog
@raivolink raivolink requested a review from jamesbearden June 10, 2026 13:11
@playerzero-ai

playerzero-ai Bot commented Jun 10, 2026

Copy link
Copy Markdown

PlayerZero

feat-df-to-workitemmain

Change Summary

Summary

  • Added a new create_work_items_from_dataframe() action to Agent Connector that:
    • resolves the target agent by name,
    • loads a named dataframe from the current thread,
    • creates one Work Item per dataframe row by mapping column names to payload keys.
  • Introduced _fetch_dataframe() as a compatibility shim for agent-server dataframe reads:
    • tries threads/{thread_id}/data-frames/{name} first, then falls back to data-frames/{name},
    • accepts both response shapes: {"columns": [...], "rows": [...]} and list[dict],
    • surfaces non-404 failures as ActionError instead of swallowing them.
  • Updated release metadata and docs:
    • README now documents dataframe-driven work item creation with an example,
    • CHANGELOG adds the 4.3.3 entry,
    • package version bumped from 4.3.1 to 4.3.3.

Broader impact

  • This extends the package’s existing work-item orchestration from manual JSON/batch inputs to a data-driven batch path.
  • The change deliberately bypasses the higher-level get_data_frame() helper because server compatibility differs across environments; the new helper handles both newer local servers and cloud/older server responses directly.

Simulations

Project Branch Status Updated (UTC)
legacy feat-df-to-workitemmain Pass 5/5 passed Jun 10 @ 01:35 PM UTC

Results

@jamesbearden

Copy link
Copy Markdown

Looks good to me

@jamesbearden jamesbearden left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good from my end

@raivolink raivolink merged commit b7902d4 into main Jun 10, 2026
7 checks passed
@raivolink raivolink deleted the feat-df-to-workitem branch June 10, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants