fix: Set api keys to not required for Agent component to properly expose errors to the playground (#8694)

set api keys to not required

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
This commit is contained in:
Mike Fortman 2025-06-24 16:08:50 -05:00 committed by GitHub
commit fe4fa8e08b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,6 +45,8 @@ def process_inputs(component_data: Input):
component_data.value = ""
component_data.load_from_db = False
component_data.real_time_refresh = True
if component_data.name == "api_key":
component_data.required = False
elif component_data.name == "tool_model_enabled":
component_data.advanced = True
component_data.value = True