Skip to content

Commit 1bd131b

Browse files
committed
feat: [AI-176] Rename to vision
1 parent 4a178e9 commit 1bd131b

File tree

34 files changed

+705
-3098
lines changed

34 files changed

+705
-3098
lines changed

agents-core/vision_agents/core/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def setup_logging(log_level: str) -> None:
3030
)
3131

3232
# Set specific logger levels
33-
logging.getLogger("stream_agents").setLevel(numeric_level)
33+
logging.getLogger("vision_agents").setLevel(numeric_level)
3434
logging.getLogger("test123").setLevel(numeric_level)
3535

3636

agents-core/vision_agents/core/utils/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
import logging
88

9-
from .utils import get_stream_agents_version
9+
from .utils import get_vision_agents_version
1010

1111
logger = logging.getLogger(__name__)
1212

13-
__all__ = ["get_stream_agents_version"]
13+
__all__ = ["get_vision_agents_version"]
1414

1515

agents-core/vision_agents/core/utils/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,15 @@ def frame_to_png_bytes(frame) -> bytes:
116116
return b""
117117

118118

119-
def get_stream_agents_version() -> str:
119+
def get_vision_agents_version() -> str:
120120
"""
121-
Get the installed stream-agents package version.
121+
Get the installed vision-agents package version.
122122
123123
Returns:
124124
Version string, or "unknown" if not available.
125125
"""
126126
try:
127-
return importlib.metadata.version("stream-agents")
127+
return importlib.metadata.version("vision-agents")
128128
except importlib.metadata.PackageNotFoundError:
129129
return "unknown"
130130

docs/ai/instructions/ai-events-example.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Event System Developer Guide
22

3-
This guide explains how to use the event system when building plugins for stream-agents. The event system provides a centralized way to handle asynchronous communication between components.
3+
This guide explains how to use the event system when building plugins for vision-agents. The event system provides a centralized way to handle asynchronous communication between components.
44

55
## Table of Contents
66

@@ -29,7 +29,7 @@ The `EventManager` is the core component that handles event registration, subscr
2929
### Basic Event Manager
3030

3131
```python
32-
from stream_agents.core.events.manager import EventManager
32+
from vision_agents.core.events.manager import EventManager
3333

3434
# Create a basic event manager
3535
manager = EventManager()
@@ -57,7 +57,7 @@ class MyPlugin:
5757
### Register Individual Events
5858

5959
```python
60-
from stream_agents.core.events.manager import EventManager
60+
from vision_agents.core.events.manager import EventManager
6161
from my_plugin.events import MyCustomEvent
6262

6363
manager = EventManager()
@@ -92,7 +92,7 @@ All events must inherit from `PluginBaseEvent` and follow this pattern:
9292

9393
```python
9494
from dataclasses import dataclass, field
95-
from stream_agents.core.events import PluginBaseEvent
95+
from vision_agents.core.events import PluginBaseEvent
9696
from typing import Optional, Any
9797

9898
@dataclass
@@ -246,7 +246,7 @@ async def handle_gemini_events(event: GeminiConnectedEvent):
246246
```python
247247
# my_plugin/events.py
248248
from dataclasses import dataclass, field
249-
from stream_agents.core.events import PluginBaseEvent
249+
from vision_agents.core.events import PluginBaseEvent
250250

251251
@dataclass
252252
class MyPluginStartEvent(PluginBaseEvent):
@@ -260,7 +260,7 @@ class MyPluginDataEvent(PluginBaseEvent):
260260
metadata: Optional[dict] = None
261261

262262
# my_plugin/plugin.py
263-
from stream_agents.core.plugin_base import PluginBase
263+
from vision_agents.core.plugin_base import PluginBase
264264
from . import events
265265

266266
class MyPlugin(PluginBase):
@@ -289,8 +289,8 @@ class MyPlugin(PluginBase):
289289

290290
```python
291291
# Simple plugin using base class events
292-
from stream_agents.core.stt.stt import STT
293-
from stream_agents.core.stt.events import STTTranscriptEvent, STTErrorEvent
292+
from vision_agents.core.stt.stt import STT
293+
from vision_agents.core.stt.events import STTTranscriptEvent, STTErrorEvent
294294

295295
class SimpleSTT(STT):
296296
def __init__(self):
@@ -325,8 +325,8 @@ class SimpleSTT(STT):
325325

326326
```python
327327
# Agent with event-driven architecture
328-
from stream_agents.core.agents import Agent
329-
from stream_agents.core.agents.events import AgentSayEvent
328+
from vision_agents.core.agents import Agent
329+
from vision_agents.core.agents.events import AgentSayEvent
330330

331331
class MyAgent(Agent):
332332
def __init__(self, **kwargs):
@@ -464,7 +464,7 @@ async def test_plugin_events():
464464
### OpenAI Plugin Events
465465

466466
```python
467-
# plugins/openai/stream_agents/plugins/openai/events.py
467+
# plugins/openai/vision_agents/plugins/openai/events.py
468468
@dataclass
469469
class OpenAIStreamEvent(PluginBaseEvent):
470470
type: str = field(default='plugin.openai.stream', init=False)
@@ -503,7 +503,7 @@ class OpenAILLM(LLM):
503503
### Gemini Plugin Events
504504

505505
```python
506-
# plugins/gemini/stream_agents/plugins/gemini/events.py
506+
# plugins/gemini/vision_agents/plugins/gemini/events.py
507507
@dataclass
508508
class GeminiConnectedEvent(PluginBaseEvent):
509509
type: str = field(default='plugin.gemini.connected', init=False)
@@ -541,4 +541,4 @@ The event system provides a powerful, flexible way to build plugins with:
541541
- **Testing**: Simple to test by subscribing to events
542542
- **Monitoring**: Easy to add logging and analytics by subscribing to events
543543

544-
Use this guide when building new plugins to ensure consistent, maintainable, and testable code with the event system.
544+
Use this guide when building new plugins to ensure consistent, maintainable, and testable code with the event system.

docs/ai/instructions/ai-llm.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
## Overview
44

5-
LLM plugins provide language model functionality for the stream-agents framework. They handle text generation, conversation management, and function calling capabilities.
5+
LLM plugins provide language model functionality for the vision-agents framework. They handle text generation, conversation management, and function calling capabilities.
66

77
## Base Class
88

9-
All LLM plugins should inherit from `stream_agents.core.llm.llm.LLM`:
9+
All LLM plugins should inherit from `vision_agents.core.llm.llm.LLM`:
1010

1111
```python
12-
from stream_agents.core.llm.llm import LLM, LLMResponseEvent
13-
from stream_agents.core.llm.types import LLMTextResponseDeltaEvent
12+
from vision_agents.core.llm.llm import LLM, LLMResponseEvent
13+
from vision_agents.core.llm.types import LLMTextResponseDeltaEvent
1414
from . import events
1515

1616
class MyLLM(LLM):
@@ -162,7 +162,7 @@ Implement function calling methods if supported:
162162
```python
163163
def _convert_tools_to_provider_format(self, tools: List[ToolSchema]) -> List[Dict[str, Any]]:
164164
"""Convert tools to your provider's format."""
165-
# Convert stream-agents ToolSchema to your provider's format
165+
# Convert vision-agents ToolSchema to your provider's format
166166
return converted_tools
167167

168168
def _extract_tool_calls_from_response(self, response: Any) -> List[NormalizedToolCallItem]:
@@ -173,10 +173,10 @@ def _extract_tool_calls_from_response(self, response: Any) -> List[NormalizedToo
173173

174174
## Realtime/STS Support
175175

176-
For Speech-to-Speech (STS) functionality, inherit from `stream_agents.core.llm.realtime.Realtime`:
176+
For Speech-to-Speech (STS) functionality, inherit from `vision_agents.core.llm.realtime.Realtime`:
177177

178178
```python
179-
from stream_agents.core.llm.realtime import Realtime
179+
from vision_agents.core.llm.realtime import Realtime
180180

181181
class MyRealtimeLLM(Realtime):
182182
def __init__(self, **kwargs):
@@ -200,11 +200,11 @@ class MyRealtimeLLM(Realtime):
200200
Here's a complete example of an LLM plugin:
201201

202202
```python
203-
# myllm/stream_agents/plugins/myllm/llm.py
203+
# myllm/vision_agents/plugins/myllm/llm.py
204204
from typing import Optional, List, Any
205-
from stream_agents.core.llm.llm import LLM, LLMResponseEvent
206-
from stream_agents.core.llm.types import LLMTextResponseDeltaEvent
207-
from stream_agents.core.processors import Processor
205+
from vision_agents.core.llm.llm import LLM, LLMResponseEvent
206+
from vision_agents.core.llm.types import LLMTextResponseDeltaEvent
207+
from vision_agents.core.processors import Processor
208208
from . import events
209209

210210

docs/ai/instructions/ai-stt.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
## Overview
44

5-
STT (Speech-to-Text) plugins provide audio transcription functionality for the stream-agents framework. They convert audio streams into text transcripts that can be processed by other components.
5+
STT (Speech-to-Text) plugins provide audio transcription functionality for the vision-agents framework. They convert audio streams into text transcripts that can be processed by other components.
66

77
## Base Class
88

9-
All STT plugins should inherit from `stream_agents.core.stt.stt.STT`:
9+
All STT plugins should inherit from `vision_agents.core.stt.stt.STT`:
1010

1111
```python
12-
from stream_agents.core.stt.stt import STT
13-
from stream_agents.core.stt.events import STTTranscriptEvent, STTStartedEvent, STTEndedEvent
12+
from vision_agents.core.stt.stt import STT
13+
from vision_agents.core.stt.events import STTTranscriptEvent, STTStartedEvent, STTEndedEvent
1414
from . import events
1515

1616
class MySTT(STT):
@@ -327,11 +327,11 @@ class MyVADIntegratedSTT(STT):
327327
Here's a complete example of an STT plugin:
328328

329329
```python
330-
# mystt/stream_agents/plugins/mystt/stt.py
330+
# mystt/vision_agents/plugins/mystt/stt.py
331331
import asyncio
332332
from typing import Optional, List, AsyncIterator
333-
from stream_agents.core.stt.stt import STT
334-
from stream_agents.core.stt.events import STTTranscriptEvent
333+
from vision_agents.core.stt.stt import STT
334+
from vision_agents.core.stt.events import STTTranscriptEvent
335335
from . import events
336336

337337
class MySTT(STT):

docs/ai/instructions/ai-tts.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
## Overview
44

5-
TTS (Text-to-Speech) plugins provide audio synthesis functionality for the stream-agents framework. They convert text into audio streams that can be played to users.
5+
TTS (Text-to-Speech) plugins provide audio synthesis functionality for the vision-agents framework. They convert text into audio streams that can be played to users.
66

77
## Base Class
88

9-
All TTS plugins should inherit from `stream_agents.core.tts.tts.TTS`:
9+
All TTS plugins should inherit from `vision_agents.core.tts.tts.TTS`:
1010

1111
```python
12-
from stream_agents.core.tts.tts import TTS
13-
from stream_agents.core.tts.events import TTSAudioEvent, TTSStartedEvent, TTSEndedEvent
12+
from vision_agents.core.tts.tts import TTS
13+
from vision_agents.core.tts.events import TTSAudioEvent, TTSStartedEvent, TTSEndedEvent
1414
from . import events
1515

1616
class MyTTS(TTS):
@@ -235,11 +235,11 @@ class MyRealtimeTTS(TTS):
235235
Here's a complete example of a TTS plugin:
236236

237237
```python
238-
# mytts/stream_agents/plugins/mytts/tts.py
238+
# mytts/vision_agents/plugins/mytts/tts.py
239239
import asyncio
240240
from typing import Optional, List, AsyncIterator
241-
from stream_agents.core.tts.tts import TTS
242-
from stream_agents.core.tts.events import TTSAudioEvent
241+
from vision_agents.core.tts.tts import TTS
242+
from vision_agents.core.tts.events import TTSAudioEvent
243243
from . import events
244244

245245
class MyTTS(TTS):
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
[project]
2-
name = "stream-agents-golf"
2+
name = "vision-agents-golf"
33
version = "0.0.0"
44
requires-python = ">=3.13"
55

66
# put only what this example needs
77
dependencies = [
88
"python-dotenv>=1.0",
9-
"stream-agents",
10-
"stream-agents-plugins-openai",
11-
"stream-agents-plugins-getstream",
12-
"stream-agents-plugins-ultralytics",
9+
"vision-agents",
10+
"vision-agents-plugins-openai",
11+
"vision-agents-plugins-getstream",
12+
"vision-agents-plugins-ultralytics",
1313
"ultralytics>=8.3.184",
1414
"av>=14.4.0",
1515
]
1616

1717
[tool.uv.sources]
18-
"stream-agents" = {path = "../../agents-core", editable=true}
19-
"stream-agents-plugins-deepgram" = {path = "../../plugins/deepgram", editable=true}
20-
"stream-agents-plugins-ultralytics" = {path = "../../plugins/ultralytics", editable=true}
21-
"stream-agents-plugins-openai" = {path = "../../plugins/openai", editable=true}
22-
"stream-agents-plugins-getstream" = {path = "../../plugins/getstream", editable=true}
18+
"vision-agents" = {path = "../../agents-core", editable=true}
19+
"vision-agents-plugins-deepgram" = {path = "../../plugins/deepgram", editable=true}
20+
"vision-agents-plugins-ultralytics" = {path = "../../plugins/ultralytics", editable=true}
21+
"vision-agents-plugins-openai" = {path = "../../plugins/openai", editable=true}
22+
"vision-agents-plugins-getstream" = {path = "../../plugins/getstream", editable=true}

0 commit comments

Comments
 (0)