Skip to content

Agents: Fix Gemini schema compatibility and robust model discovery#126

Merged
steipete merged 1 commit intoopenclaw:mainfrom
mcinteerj:fix/gemini-compatibility
Jan 3, 2026
Merged

Agents: Fix Gemini schema compatibility and robust model discovery#126
steipete merged 1 commit intoopenclaw:mainfrom
mcinteerj:fix/gemini-compatibility

Conversation

@mcinteerj
Copy link
Copy Markdown
Contributor

This PR improves Gemini provider support in Clawdis:

  1. Gemini Schema Compatibility: Implements cleanSchemaForGemini to ensure tool schemas are compliant with Gemini's strict OpenAPI 3.0 subset (strips patternProperties, converts const to enum, and handles type/anyOf conflicts).
  2. Robust Model Discovery: Prevents caching of empty/failed model discovery results, allowing the agent to recover after configuration updates without a full restart.

steipete added a commit that referenced this pull request Jan 3, 2026
@steipete steipete merged commit 81f4a7c into openclaw:main Jan 3, 2026
1 check passed
dgarson referenced this pull request in dgarson/clawdbot Feb 7, 2026
…ns-and-contracts

memory: scaffold pipeline contracts, hooks, adapters, and no-op tools
slathrop referenced this pull request in slathrop/openclaw-js Feb 11, 2026
- Replace 'dm' with 'direct' in all peer kind assignments
- Keep backward compat: normalizeChatType('dm') returns 'direct'
- Session keys now generate ':direct:' but parse both ':dm:' and ':direct:'
- resetByType falls back to 'dm' key when 'direct' is missing
- Update all channel monitors and extensions to use 'direct'
- Add backward compat tests for session keys and config parsing
- Zod schemas accept both 'direct' and 'dm' (deprecated)
slathrop referenced this pull request in slathrop/openclaw-js Feb 11, 2026
Tasks completed: 2/2
- Task 1: ChatType unification dm -> direct (#126)
- Task 2: Windows paths + cross-platform tests (#127, #132, #133)

Phase 13 complete (11/11 plans).

SUMMARY: .planning/phases/13-paths-config-refactoring/13-11-SUMMARY.md
dominicnunez referenced this pull request in dominicnunez/openclaw Feb 26, 2026
github-actions bot pushed a commit to Piboonsak/openclaw_github that referenced this pull request Mar 11, 2026
CyberSpencer added a commit to CyberSpencer/openclaw that referenced this pull request Mar 19, 2026
zhyongrui added a commit to zhyongrui/openclaw that referenced this pull request Mar 20, 2026
dustin-olenslager pushed a commit to dustin-olenslager/ironclaw-supreme that referenced this pull request Mar 24, 2026
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