Skip to content

Commit 4d9ef66

Browse files
committed
run pre-commits
1 parent fc2e88c commit 4d9ef66

8 files changed

Lines changed: 25 additions & 25 deletions

docs/api-reference/marvin-agents-agent.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ T = TypeVar('T')
1919

2020
### `Agent`
2121
```python
22-
class Agent(name: str = lambda: random.choice(AGENT_NAMES)(), instructions: str | None = None, description: str | None = None, verbose: bool = False, prompt: str | Path = Path('agent.jinja'), tools: list[Callable[..., Any]] = lambda: [](), memories: list[Memory] = lambda: [](), mcp_servers: list[Any] = lambda: [](), model: KnownModelName | Model | None = None, model_settings: ModelSettings = ModelSettings())
22+
class Agent(name: str = (lambda: random.choice(AGENT_NAMES))(), instructions: str | None = None, description: str | None = None, verbose: bool = False, prompt: str | Path = Path('agent.jinja'), tools: list[Callable[..., Any]] = (lambda: [])(), memories: list[Memory] = (lambda: [])(), mcp_servers: list[Any] = (lambda: [])(), model: KnownModelName | Model | None = None, model_settings: ModelSettings = ModelSettings())
2323
```
2424
An agent that can process tasks and maintain state.
2525

docs/api-reference/marvin-agents-team.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: team
88

99
### `RandomTeam`
1010
```python
11-
class RandomTeam(name: str = lambda: random.choice(TEAM_NAMES)(), instructions: str | None = None, description: str | None = 'A team of agents that randomly selects an agent to act.', verbose: bool = False, prompt: str | Path = Path('team.jinja'), members: list[Actor], delegates: dict[Actor, list[Actor]] = dict())
11+
class RandomTeam(name: str = (lambda: random.choice(TEAM_NAMES))(), instructions: str | None = None, description: str | None = 'A team of agents that randomly selects an agent to act.', verbose: bool = False, prompt: str | Path = Path('team.jinja'), members: list[Actor], delegates: dict[Actor, list[Actor]] = dict())
1212
```
1313

1414
**Methods:**
@@ -20,7 +20,7 @@ class RandomTeam(name: str = lambda: random.choice(TEAM_NAMES)(), instructions:
2020

2121
### `RoundRobinTeam`
2222
```python
23-
class RoundRobinTeam(name: str = lambda: random.choice(TEAM_NAMES)(), instructions: str | None = None, description: str | None = 'A team of agents that rotate turns.', verbose: bool = False, prompt: str | Path = Path('team.jinja'), members: list[Actor], delegates: dict[Actor, list[Actor]] = dict())
23+
class RoundRobinTeam(name: str = (lambda: random.choice(TEAM_NAMES))(), instructions: str | None = None, description: str | None = 'A team of agents that rotate turns.', verbose: bool = False, prompt: str | Path = Path('team.jinja'), members: list[Actor], delegates: dict[Actor, list[Actor]] = dict())
2424
```
2525

2626
**Methods:**
@@ -32,13 +32,13 @@ class RoundRobinTeam(name: str = lambda: random.choice(TEAM_NAMES)(), instructio
3232

3333
### `Swarm`
3434
```python
35-
class Swarm(name: str = lambda: random.choice(TEAM_NAMES)(), instructions: str | None = None, description: str | None = None, verbose: bool = False, prompt: str | Path = Path('team.jinja'), members: list[Actor], delegates: dict[Actor, list[Actor]] = dict())
35+
class Swarm(name: str = (lambda: random.choice(TEAM_NAMES))(), instructions: str | None = None, description: str | None = None, verbose: bool = False, prompt: str | Path = Path('team.jinja'), members: list[Actor], delegates: dict[Actor, list[Actor]] = dict())
3636
```
3737
A swarm is a team that permits all agents to delegate to each other.
3838

3939
### `Team`
4040
```python
41-
class Team(name: str = lambda: random.choice(TEAM_NAMES)(), instructions: str | None = None, description: str | None = None, verbose: bool = False, prompt: str | Path = Path('team.jinja'), members: list[Actor], delegates: dict[Actor, list[Actor]] = dict())
41+
class Team(name: str = (lambda: random.choice(TEAM_NAMES))(), instructions: str | None = None, description: str | None = None, verbose: bool = False, prompt: str | Path = Path('team.jinja'), members: list[Actor], delegates: dict[Actor, list[Actor]] = dict())
4242
```
4343
A team is a container that maintains state for a group of agents.
4444

docs/api-reference/marvin-engine-events.mdx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,67 +8,67 @@ title: events
88

99
### `ActorEndTurnEvent`
1010
```python
11-
class ActorEndTurnEvent(type: EventType, id: uuid.UUID = lambda: uuid.uuid4()(), timestamp: datetime.datetime = lambda: datetime.datetime.now(datetime.timezone.utc)(), actor: Actor)
11+
class ActorEndTurnEvent(type: EventType, id: uuid.UUID = (lambda: uuid.uuid4())(), timestamp: datetime.datetime = (lambda: datetime.datetime.now(datetime.timezone.utc))(), actor: Actor)
1212
```
1313
Event for agent turn end.
1414

1515
### `ActorMessageDeltaEvent`
1616
```python
17-
class ActorMessageDeltaEvent(type: EventType, id: uuid.UUID = lambda: uuid.uuid4()(), timestamp: datetime.datetime = lambda: datetime.datetime.now(datetime.timezone.utc)(), actor: Actor, delta: TextPartDelta, snapshot: TextPart)
17+
class ActorMessageDeltaEvent(type: EventType, id: uuid.UUID = (lambda: uuid.uuid4())(), timestamp: datetime.datetime = (lambda: datetime.datetime.now(datetime.timezone.utc))(), actor: Actor, delta: TextPartDelta, snapshot: TextPart)
1818
```
1919
Event for delta updates to agent messages during streaming.
2020

2121
### `ActorMessageEvent`
2222
```python
23-
class ActorMessageEvent(type: EventType, id: uuid.UUID = lambda: uuid.uuid4()(), timestamp: datetime.datetime = lambda: datetime.datetime.now(datetime.timezone.utc)(), actor: Actor, message: TextPart)
23+
class ActorMessageEvent(type: EventType, id: uuid.UUID = (lambda: uuid.uuid4())(), timestamp: datetime.datetime = (lambda: datetime.datetime.now(datetime.timezone.utc))(), actor: Actor, message: TextPart)
2424
```
2525
Event for complete text messages from an agent.
2626

2727
### `ActorStartTurnEvent`
2828
```python
29-
class ActorStartTurnEvent(type: EventType, id: uuid.UUID = lambda: uuid.uuid4()(), timestamp: datetime.datetime = lambda: datetime.datetime.now(datetime.timezone.utc)(), actor: Actor)
29+
class ActorStartTurnEvent(type: EventType, id: uuid.UUID = (lambda: uuid.uuid4())(), timestamp: datetime.datetime = (lambda: datetime.datetime.now(datetime.timezone.utc))(), actor: Actor)
3030
```
3131
Event for agent turn start.
3232

3333
### `EndTurnToolCallEvent`
3434
```python
35-
class EndTurnToolCallEvent(type: EventType, id: uuid.UUID = lambda: uuid.uuid4()(), timestamp: datetime.datetime = lambda: datetime.datetime.now(datetime.timezone.utc)(), actor: Actor, event: FinalResultEvent, tool_call_id: str, tool: EndTurn)
35+
class EndTurnToolCallEvent(type: EventType, id: uuid.UUID = (lambda: uuid.uuid4())(), timestamp: datetime.datetime = (lambda: datetime.datetime.now(datetime.timezone.utc))(), actor: Actor, event: FinalResultEvent, tool_call_id: str, tool: EndTurn)
3636
```
3737
Event that fires as soon as we know that an end turn tool call has been made.
3838

3939
### `EndTurnToolResultEvent`
4040
```python
41-
class EndTurnToolResultEvent(type: EventType, id: uuid.UUID = lambda: uuid.uuid4()(), timestamp: datetime.datetime = lambda: datetime.datetime.now(datetime.timezone.utc)(), actor: Actor, result: FinalResult, tool_call_id: str, tool: EndTurn)
41+
class EndTurnToolResultEvent(type: EventType, id: uuid.UUID = (lambda: uuid.uuid4())(), timestamp: datetime.datetime = (lambda: datetime.datetime.now(datetime.timezone.utc))(), actor: Actor, result: FinalResult, tool_call_id: str, tool: EndTurn)
4242
```
4343
Event for the final result from an end turn tool.
4444

4545
### `Event`
4646
```python
47-
class Event(type: EventType, id: uuid.UUID = lambda: uuid.uuid4()(), timestamp: datetime.datetime = lambda: datetime.datetime.now(datetime.timezone.utc)())
47+
class Event(type: EventType, id: uuid.UUID = (lambda: uuid.uuid4())(), timestamp: datetime.datetime = (lambda: datetime.datetime.now(datetime.timezone.utc))())
4848
```
4949
Base class for all events in the system.
5050

5151
### `OrchestratorEndEvent`
5252
```python
53-
class OrchestratorEndEvent(type: EventType, id: uuid.UUID = lambda: uuid.uuid4()(), timestamp: datetime.datetime = lambda: datetime.datetime.now(datetime.timezone.utc)())
53+
class OrchestratorEndEvent(type: EventType, id: uuid.UUID = (lambda: uuid.uuid4())(), timestamp: datetime.datetime = (lambda: datetime.datetime.now(datetime.timezone.utc))())
5454
```
5555
Event for orchestrator end.
5656

5757
### `OrchestratorErrorEvent`
5858
```python
59-
class OrchestratorErrorEvent(type: EventType, id: uuid.UUID = lambda: uuid.uuid4()(), timestamp: datetime.datetime = lambda: datetime.datetime.now(datetime.timezone.utc)(), error: str)
59+
class OrchestratorErrorEvent(type: EventType, id: uuid.UUID = (lambda: uuid.uuid4())(), timestamp: datetime.datetime = (lambda: datetime.datetime.now(datetime.timezone.utc))(), error: str)
6060
```
6161
Event for orchestrator exceptions.
6262

6363
### `OrchestratorStartEvent`
6464
```python
65-
class OrchestratorStartEvent(type: EventType, id: uuid.UUID = lambda: uuid.uuid4()(), timestamp: datetime.datetime = lambda: datetime.datetime.now(datetime.timezone.utc)())
65+
class OrchestratorStartEvent(type: EventType, id: uuid.UUID = (lambda: uuid.uuid4())(), timestamp: datetime.datetime = (lambda: datetime.datetime.now(datetime.timezone.utc))())
6666
```
6767
Event for orchestrator start.
6868

6969
### `ToolCallDeltaEvent`
7070
```python
71-
class ToolCallDeltaEvent(type: EventType, id: uuid.UUID = lambda: uuid.uuid4()(), timestamp: datetime.datetime = lambda: datetime.datetime.now(datetime.timezone.utc)(), actor: Actor, delta: ToolCallPartDelta, snapshot: ToolCallPart, tool_call_id: str, tool: Callable[..., Any] | None)
71+
class ToolCallDeltaEvent(type: EventType, id: uuid.UUID = (lambda: uuid.uuid4())(), timestamp: datetime.datetime = (lambda: datetime.datetime.now(datetime.timezone.utc))(), actor: Actor, delta: ToolCallPartDelta, snapshot: ToolCallPart, tool_call_id: str, tool: Callable[..., Any] | None)
7272
```
7373
Event for delta updates to tool calls during streaming.
7474

@@ -82,7 +82,7 @@ Event for delta updates to tool calls during streaming.
8282

8383
### `ToolCallEvent`
8484
```python
85-
class ToolCallEvent(type: EventType, id: uuid.UUID = lambda: uuid.uuid4()(), timestamp: datetime.datetime = lambda: datetime.datetime.now(datetime.timezone.utc)(), actor: Actor, message: ToolCallPart, tool_call_id: str, tool: Callable[..., Any] | None)
85+
class ToolCallEvent(type: EventType, id: uuid.UUID = (lambda: uuid.uuid4())(), timestamp: datetime.datetime = (lambda: datetime.datetime.now(datetime.timezone.utc))(), actor: Actor, message: ToolCallPart, tool_call_id: str, tool: Callable[..., Any] | None)
8686
```
8787
Event for complete tool calls ready to be executed.
8888

@@ -96,19 +96,19 @@ Event for complete tool calls ready to be executed.
9696

9797
### `ToolResultEvent`
9898
```python
99-
class ToolResultEvent(type: EventType, id: uuid.UUID = lambda: uuid.uuid4()(), timestamp: datetime.datetime = lambda: datetime.datetime.now(datetime.timezone.utc)(), message: ToolReturnPart)
99+
class ToolResultEvent(type: EventType, id: uuid.UUID = (lambda: uuid.uuid4())(), timestamp: datetime.datetime = (lambda: datetime.datetime.now(datetime.timezone.utc))(), message: ToolReturnPart)
100100
```
101101
Event for tool return values.
102102

103103
### `ToolRetryEvent`
104104
```python
105-
class ToolRetryEvent(type: EventType, id: uuid.UUID = lambda: uuid.uuid4()(), timestamp: datetime.datetime = lambda: datetime.datetime.now(datetime.timezone.utc)(), message: RetryPromptPart)
105+
class ToolRetryEvent(type: EventType, id: uuid.UUID = (lambda: uuid.uuid4())(), timestamp: datetime.datetime = (lambda: datetime.datetime.now(datetime.timezone.utc))(), message: RetryPromptPart)
106106
```
107107
Event for tool retry requests.
108108

109109
### `UserMessageEvent`
110110
```python
111-
class UserMessageEvent(type: EventType, id: uuid.UUID = lambda: uuid.uuid4()(), timestamp: datetime.datetime = lambda: datetime.datetime.now(datetime.timezone.utc)(), message: UserPromptPart)
111+
class UserMessageEvent(type: EventType, id: uuid.UUID = (lambda: uuid.uuid4())(), timestamp: datetime.datetime = (lambda: datetime.datetime.now(datetime.timezone.utc))(), message: UserPromptPart)
112112
```
113113
Event for user messages.
114114

docs/api-reference/marvin-memory-memory.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: memory
88

99
### `Memory`
1010
```python
11-
class Memory(key: str, instructions: str | None = None, provider: MemoryProvider = lambda: marvin.defaults.memory_provider(), auto_use: bool = False, prompt: str | Path = Path('memory.jinja'))
11+
class Memory(key: str, instructions: str | None = None, provider: MemoryProvider = (lambda: marvin.defaults.memory_provider)(), auto_use: bool = False, prompt: str | Path = Path('memory.jinja'))
1212
```
1313
A memory module is a partitioned collection of memories that are stored in a
1414
vector database, configured by a MemoryProvider.

docs/api-reference/marvin-memory-providers-chroma.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: chroma
88

99
### `ChromaMemory`
1010
```python
11-
class ChromaMemory(client: chromadb.ClientAPI = lambda: chromadb.PersistentClient(path=str(marvin.settings.home_path / 'memory/chroma'))(), collection_name: str = 'memory-{key}')
11+
class ChromaMemory(client: chromadb.ClientAPI = (lambda: chromadb.PersistentClient(path=(str(marvin.settings.home_path / 'memory/chroma'))))(), collection_name: str = 'memory-{key}')
1212
```
1313

1414
**Methods:**

docs/api-reference/marvin-memory-providers-lance.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: lance
88

99
### `LanceMemory`
1010
```python
11-
class LanceMemory(uri: Path = marvin.settings.home_path / 'memory' / 'lancedb', table_name: str = 'memory-{key}', embedding_fn: Callable[..., Any] = lambda: get_registry().get('openai').create(name='text-embedding-ada-002')(), _cached_model: LanceModel | None = None)
11+
class LanceMemory(uri: Path = marvin.settings.home_path / 'memory' / 'lancedb', table_name: str = 'memory-{key}', embedding_fn: Callable[..., Any] = (lambda: get_registry().get('openai').create(name='text-embedding-ada-002'))(), _cached_model: LanceModel | None = None)
1212
```
1313

1414
**Methods:**

docs/api-reference/marvin-memory-providers-qdrant.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: qdrant
88

99
### `QdrantMemory`
1010
```python
11-
class QdrantMemory(client: AsyncQdrantClient = lambda: AsyncQdrantClient(path=str(marvin.settings.home_path / 'memory/qdrant'))(), collection_name: str = 'memory-{key}')
11+
class QdrantMemory(client: AsyncQdrantClient = (lambda: AsyncQdrantClient(path=(str(marvin.settings.home_path / 'memory/qdrant'))))(), collection_name: str = 'memory-{key}')
1212
```
1313

1414
**Methods:**

docs/api-reference/marvin-thread.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Message(id: uuid.UUID = uuid.uuid4(), thread_id: str = None, message: Pyda
4141

4242
### `Thread`
4343
```python
44-
class Thread(id: str = lambda: str(uuid.uuid4())(), parent_id: str | None = None)
44+
class Thread(id: str = (lambda: str(uuid.uuid4()))(), parent_id: str | None = None)
4545
```
4646
Main runtime object for managing conversation context.
4747

0 commit comments

Comments
 (0)