MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / update_call_logic_config

Method update_call_logic_config

src/core/database.py:1486–1495  ·  view source on GitHub ↗

Update token call logic configuration.

(self, call_mode: str)

Source from the content-addressed store, hash-verified

1484 return CallLogicConfig(call_mode="default", polling_mode_enabled=False)
1485
1486 async def update_call_logic_config(self, call_mode: str):
1487 """Update token call logic configuration."""
1488 normalized = "polling" if call_mode == "polling" else "default"
1489 polling_mode_enabled = normalized == "polling"
1490 async with self._connect(write=True) as db:
1491 await db.execute("""
1492 INSERT OR REPLACE INTO call_logic_config (id, call_mode, polling_mode_enabled, updated_at)
1493 VALUES (1, ?, ?, CURRENT_TIMESTAMP)
1494 """, (normalized, polling_mode_enabled))
1495 await db.commit()
1496
1497 # Request log operations
1498 async def add_request_log(self, log: RequestLog) -> int:

Callers 1

update_call_logic_configFunction · 0.80

Calls 1

_connectMethod · 0.95

Tested by

no test coverage detected