Skip to content

Add AgentWorkspace explicit tool overloads#82

Draft
objectiveous wants to merge 1 commit into
christopherkarani:mainfrom
objectiveous:codex/agentworkspace-downstream-tools
Draft

Add AgentWorkspace explicit tool overloads#82
objectiveous wants to merge 1 commit into
christopherkarani:mainfrom
objectiveous:codex/agentworkspace-downstream-tools

Conversation

@objectiveous
Copy link
Copy Markdown
Contributor

Summary

  • add no-tool AgentWorkspace helpers that do not rely on the @ToolBuilder default closure
  • add explicit [any AnyJSONTool] overloads for Agent.onDevice and Agent.spec
  • keep the existing @ToolBuilder overloads for typed-tool callers
  • cover the explicit-tool path in workspace tests

Why

Downstream framework consumers can hit linker failures when the public workspace helpers expose default @ToolBuilder symbols such as ToolCollection.empty or ToolBuilder.buildBlock. Providing non-builder entry points gives those consumers a stable exported API while preserving the source-friendly builder API.

Validation

  • swift test --package-path Vendor/Swarm --filter AgentWorkspaceTests

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.

1 participant