Add core Python agent with configuration management, environment setup, and deployment documentation. Includes user/agent profiles, startup scripts, and dependency management for the psagentia system.
13 lines
289 B
Python
Executable File
13 lines
289 B
Python
Executable File
from typing import Any
|
|
from typing_extensions import Iterator, AsyncIterator
|
|
|
|
|
|
def consume_sync_iterator(iterator: Iterator[Any]) -> None:
|
|
for _ in iterator:
|
|
...
|
|
|
|
|
|
async def consume_async_iterator(iterator: AsyncIterator[Any]) -> None:
|
|
async for _ in iterator:
|
|
...
|