Implement tool schema normalization that handles both bare tools (just Function definition) and wrapped OpenAI-style tool schemas from memory providers. Ensures all provider-exported tools are normalized to a consistent format before being merged into the agent's tool list.
Acceptance Criteria
Normalizer package detects whether a schema is bare (map with 'name' top-level) or wrapped (map with 'type':'function', 'function':{...})
Converts both formats to a canonical internal representation
Handles edge cases: missing required fields, extra unknown fields
Schema normalization happens at registration time, not per-turn
Errors on truly invalid schemas with clear messages
Round-trips through JSON marshal/unmarshal
Imported from beads archie-core-1786637494784-190-fb7ac8fd · GitHub #211 · type task · priority P2 · created 2026-08-08 · closed 2026-08-08
Implement tool schema normalization that handles both bare tools (just Function definition) and wrapped OpenAI-style tool schemas from memory providers. Ensures all provider-exported tools are normalized to a consistent format before being merged into the agent's tool list.
### Acceptance Criteria
Normalizer package detects whether a schema is bare (map with 'name' top-level) or wrapped (map with 'type':'function', 'function':{...})
Converts both formats to a canonical internal representation
Handles edge cases: missing required fields, extra unknown fields
Schema normalization happens at registration time, not per-turn
Errors on truly invalid schemas with clear messages
Round-trips through JSON marshal/unmarshal
---
_Imported from beads `archie-core-1786637494784-190-fb7ac8fd` · GitHub #211 · type task · priority P2 · created 2026-08-08 · closed 2026-08-08_
sam
added the mediumtask labels 2026-10-27 13:37:27 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Implement tool schema normalization that handles both bare tools (just Function definition) and wrapped OpenAI-style tool schemas from memory providers. Ensures all provider-exported tools are normalized to a consistent format before being merged into the agent's tool list.
Acceptance Criteria
Normalizer package detects whether a schema is bare (map with 'name' top-level) or wrapped (map with 'type':'function', 'function':{...})
Converts both formats to a canonical internal representation
Handles edge cases: missing required fields, extra unknown fields
Schema normalization happens at registration time, not per-turn
Errors on truly invalid schemas with clear messages
Round-trips through JSON marshal/unmarshal
Imported from beads
archie-core-1786637494784-190-fb7ac8fd· GitHub #211 · type task · priority P2 · created 2026-08-08 · closed 2026-08-08