setUp static method
Implementation
static void setUp(BuildContext context) {
final chatProvider = Provider.of<ChatProvider>(context, listen: false);
final agentDetails = chatProvider.agentDetails;
// Get the agent ID from the environment variable
const agentId = String.fromEnvironment('AGENT_ID');
final validAgentId = agentId.replaceAll('-', '_');
if (agentDetails == null) {
// print('Warning: Agent details are null. Using default configuration.');
return;
}
FlavorConfig(
name: agentDetails.displayName,
color: ColorTheme.primary,
variables: getVariablesForAgent(context, validAgentId),
);
}