# execute_function

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/tools/databricks/_execution/execute_function)

Execute a function with the given arguments and return the result.

## Signature

```python
execute_function(
    ws: WorkspaceClient,
    warehouse_id: str,
    function: FunctionInfo,
    parameters: Dict[str, Any],
) -> FunctionExecutionResult
```

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/d5ea8358933260ad48dd31f7f8076555c7b4885a/libs/community/langchain_community/tools/databricks/_execution.py#L121)