Skip to content

Commit 9d93cc6

Browse files
authored
Make agent name optional to support prompt-based creation (#118)
1 parent 0298748 commit 9d93cc6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

vlmrun/client/agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def create(
123123

124124
def execute(
125125
self,
126-
name: str,
126+
name: str | None = None,
127127
version: str | None = None,
128128
inputs: Optional[dict[str, Any]] = None,
129129
batch: bool = True,
@@ -134,7 +134,7 @@ def execute(
134134
"""Execute an agent with the given arguments.
135135
136136
Args:
137-
name: Name of the agent to execute
137+
name: Name of the agent to execute. If not provided, we use the prompt to identify the unique agent.
138138
version: Optional version of the agent to execute
139139
inputs: Optional inputs to the agent
140140
batch: Whether to process in batch mode (async)

vlmrun/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.3.1"
1+
__version__ = "0.3.2"

0 commit comments

Comments
 (0)