Add Foundry segment output configuration tool - #131
Open
ko47kmr wants to merge 2 commits into
Open
Conversation
- Add tdx-add-segment-output.sh script to automate :segment: output setup - Include complete segment_output.schema.json from Foundry - Add comprehensive README with usage instructions and troubleshooting - Tool enables easy integration of segment generation in Foundry agents - Tested successfully with ___test_project/test_111 agent
- Ensures output type is correctly identified as Custom in Foundry UI - Matches production agent configuration format - Tested successfully with default-agent Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
ko47kmr
requested review from
adher-code,
doryokujin and
tsubasatmd
and removed request for
adher-code and
tsubasatmd
March 16, 2026 07:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a command-line tool to automate adding
:segment:output capability to Foundry agents.foundry-tools/segment-output/tdx-add-segment-output.sh- Automates the process of configuring agents with segment generation outputsegment_output.schema.json- Complete JSON Schema defining segment structure validationKey Features
tdx agent pull→ modify →pushworkflow:segment:outputUse Case
Unlike
tdx sg(which creates segments directly via CLI), this tool configures Foundry agents to generate segment drafts through natural language conversation. Users can then review and save the segments in Audience Studio's Segment Editor.Target users: TDx CLI users and Treasure Studio who want to enable segment generation capabilities in their Foundry agents.
Testing
✅ Tested successfully with
___test_project/test_111agent✅ Verified complete workflow: pull → modify → validate → push
Test plan
🤖 Generated with Claude Code