- harness/es.py: append-only event store + проекции (образец — кооп-портал) - harness/levels.py: уровни 1с/1м/1ч/1д, контекст ∝ масштабу - harness/scheduler.py: уровневые потоки, идемпотентные тики, absorbed-стабы - harness/isolated_runner.py + _llm_worker.py: LLM-тик в сабпроцессе (глобальный asyncio-рантайм Strands не переживает 2+ create_harness) - cli.py: init/task/tasks/status/events + requeue (написан самим минутным агентом) - 9router: отдельный ключ sk-simbiot, модель auto (glm-5.3 первым)
30 lines
846 B
Python
30 lines
846 B
Python
"""Configuration types for bidirectional I/O."""
|
|
|
|
from typing import TypedDict
|
|
|
|
|
|
class AudioProcessorConfig(TypedDict, total=False):
|
|
"""Configure microphone audio processing.
|
|
|
|
Attributes:
|
|
echo_cancellation: Cancel the agent's own speaker audio from the mic input.
|
|
stream_delay_ms: Playback-to-capture delay hint in milliseconds for AEC.
|
|
"""
|
|
|
|
echo_cancellation: bool
|
|
stream_delay_ms: int
|
|
|
|
|
|
class AudioIOConfig(TypedDict, total=False):
|
|
"""Configure bidirectional audio input and output."""
|
|
|
|
audio_processor: AudioProcessorConfig | bool | None
|
|
input_buffer_size: int | None
|
|
input_device_index: int | None
|
|
input_frames_per_buffer: int
|
|
output_buffer_size: int | None
|
|
output_device_index: int | None
|
|
output_frames_per_buffer: int
|
|
|
|
|
|
__all__ = ["AudioIOConfig", "AudioProcessorConfig"]
|