Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .cursor/rules/python.mdc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ never mock.
tests use pytest.
never adjust sys.path.

never write: except Exception as e

docs should be short.
docstrings should follow the google style guides for docstrings.

Expand Down
2 changes: 1 addition & 1 deletion agents-core/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@ include = ["vision_agents"]
#]
# getstream = { git = "https://github.com/GetStream/stream-py.git", branch = "audio-more" }
# for local development
#getstream = { path = "../../stream-py/", editable = true }
getstream = { path = "../../stream-py/", editable = true }
# aiortc = { path = "../stream-py/", editable = true }
24 changes: 24 additions & 0 deletions agents-core/vision_agents/core/agents/agent_options.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import tempfile
from dataclasses import dataclass, asdict


@dataclass
class AgentOptions:
model_dir: str

def update(self, other: "AgentOptions") -> "AgentOptions":
merged_dict = asdict(self)

for key, value in asdict(other).items():
if value is not None:
merged_dict[key] = value

return AgentOptions(**merged_dict)


# Cache tempdir at module load time to avoid blocking I/O during async operations
_DEFAULT_MODEL_DIR = tempfile.gettempdir()


def default_agent_options():
return AgentOptions(model_dir=_DEFAULT_MODEL_DIR)
Loading
Loading