Skip to content

Commit 3262c5c

Browse files
authored
fix getting a2a config (#10942)
1 parent 3368928 commit 3262c5c

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

mindsdb/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
__title__ = "MindsDB"
22
__package_name__ = "mindsdb"
3-
__version__ = "25.5.4.1"
3+
__version__ = "25.5.4.2"
44
__description__ = "MindsDB's AI SQL Server enables developers to build AI tools that need access to real-time data to perform their tasks"
55
__email__ = "jorge@mindsdb.com"
66
__author__ = "MindsDB Inc"

mindsdb/api/a2a/run_a2a.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def main(config_override: Optional[Dict[str, Any]] = None, *args, **kwargs):
5757
logger.info("Successfully imported a2a module")
5858

5959
# Get configuration from config system or use provided override
60-
a2a_config = config_override if config_override is not None else config.get("a2a", {})
60+
a2a_config = config_override if config_override is not None else config.get("api", {}).get("a2a", {})
6161

6262
# Set log level if specified
6363
if a2a_config.get("log_level"):

mindsdb/utilities/starters.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,42 @@
11
def start_http(*args, **kwargs):
22
from mindsdb.api.http.start import start
3+
34
start(*args, **kwargs)
45

56

67
def start_mysql(*args, **kwargs):
78
from mindsdb.api.mysql.start import start
9+
810
start(*args, **kwargs)
911

1012

1113
def start_mongo(*args, **kwargs):
1214
from mindsdb.api.mongo.start import start
15+
1316
start(*args, **kwargs)
1417

1518

1619
def start_postgres(*args, **kwargs):
1720
from mindsdb.api.postgres.start import start
21+
1822
start(*args, **kwargs)
1923

2024

2125
def start_tasks(*args, **kwargs):
2226
from mindsdb.interfaces.tasks.task_monitor import start
27+
2328
start(*args, **kwargs)
2429

2530

2631
def start_ml_task_queue(*args, **kwargs):
2732
from mindsdb.utilities.ml_task_queue.consumer import start
33+
2834
start(*args, **kwargs)
2935

3036

3137
def start_scheduler(*args, **kwargs):
3238
from mindsdb.interfaces.jobs.scheduler import start
39+
3340
start(*args, **kwargs)
3441

3542

@@ -53,8 +60,9 @@ def start_a2a(*args, **kwargs):
5360

5461
# Extract configuration from the global config
5562
from mindsdb.utilities.config import Config
63+
5664
config = Config()
57-
a2a_config = config.get('a2a', {})
65+
a2a_config = config.get("api", {}).get("a2a", {})
5866

5967
# Pass configuration to the A2A main function
6068
main(a2a_config, *args, **kwargs)

0 commit comments

Comments
 (0)