Skip to content
This repository was archived by the owner on Mar 19, 2026. It is now read-only.

Commit 4a22fb8

Browse files
authored
Merge pull request #309 from PrefectHQ/gemini
Improve gemini support
2 parents ad2b455 + c3046bf commit 4a22fb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/controlflow/tools/tools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,11 @@ class Tool(ControlFlowModel):
5151
metadata: dict = {}
5252

5353
fn: Callable = Field(None, exclude=True)
54+
_lc_tool: Optional[langchain_core.tools.BaseTool] = None
5455

5556
def to_lc_tool(self) -> dict:
5657
payload = self.model_dump(include={"name", "description", "parameters"})
57-
return dict(type="function", function=payload)
58+
return payload
5859

5960
@prefect_task(task_run_name="Tool call: {self.name}")
6061
def run(self, input: dict):

0 commit comments

Comments
 (0)