CODEX_ADK/FRONTEND/lib/api/endpoints
Svrnty 797ee55caf fix: Make AgentDto configuration fields nullable for list endpoint compatibility
The backend /api/agents list endpoint returns a lightweight DTO without
configuration fields (temperature, maxTokens, systemPrompt, enableMemory,
conversationWindowSize). This caused a TypeError when parsing the response
as these fields were required in AgentDto.

Changes:
- Made 5 configuration fields nullable in AgentDto
- Updated constructor to accept optional values
- Fixed fromJson() to safely handle null values with explicit checks
- Maintains backward compatibility with full agent detail responses

This fix resolves the "Error Loading Agents" issue and allows the agents
page to display correctly. List endpoint now parses successfully while
detail endpoints still provide full configuration.

Fixes: TypeError: null: type 'Null' is not a subtype of type 'num'

Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-27 00:01:21 -04:00
..
agent_endpoint.dart fix: Make AgentDto configuration fields nullable for list endpoint compatibility 2025-10-27 00:01:21 -04:00
conversation_endpoint.dart Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00
execution_endpoint.dart Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00
health_endpoint.dart Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00