You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: Address review feedback for agent env var support
- Change configAgentConfig to configAgent for naming consistency
- Handle both JS config objects and JSON strings properly
- Remove separate env var chapter, integrate into existing table
- Add environment variable column to AI Agent configuration table
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|`agent`| Object | Yes | The AI agent configuration object. |`PARSE_DASHBOARD_AGENT_CONFIG`|
1301
+
|`agent.models`| Array | Yes | Array of AI model configurations available to the agent. | - |
1302
+
|`agent.models[*].name`| String | Yes | The display name for the model (e.g., `ChatGPT 4.1`). | - |
1303
+
|`agent.models[*].provider`| String | Yes | The AI provider identifier (e.g., "openai"). | - |
1304
+
|`agent.models[*].model`| String | Yes | The specific model name from the provider (e.g., `gpt-4.1`). | - |
1305
+
|`agent.models[*].apiKey`| String | Yes | The API key for authenticating with the AI provider. | - |
1306
1306
1307
-
The agent will use the configured models to process natural language commands and perform database operations using the master key from your app configuration.
1308
-
1309
-
### Environment Variables
1310
-
1311
-
You can also configure the AI agent using environment variables, which is useful for containerized deployments or when you want to avoid storing API keys in configuration files.
1312
-
1313
-
Set the `PARSE_DASHBOARD_AGENT_CONFIG` environment variable with a JSON string containing the full agent configuration:
This supports the same multi-model configuration structure as the JSON config file, allowing you to define multiple AI models in the array.
1313
+
The agent will use the configured models to process natural language commands and perform database operations using the master key from your app configuration.
0 commit comments