# FunctionExecutionResult

> **Class** in `langchain_community`

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

Result of executing a function.
We always use a string to present the result value for AI model to consume.

## Signature

```python
FunctionExecutionResult(
    self,
    error: Optional[str] = None,
    format: Optional[Literal['SCALAR', 'CSV']] = None,
    value: Optional[str] = None,
    truncated: Optional[bool] = None,
)
```

## Constructors

```python
__init__(
    self,
    error: Optional[str] = None,
    format: Optional[Literal['SCALAR', 'CSV']] = None,
    value: Optional[str] = None,
    truncated: Optional[bool] = None,
) -> None
```

| Name | Type |
|------|------|
| `error` | `Optional[str]` |
| `format` | `Optional[Literal['SCALAR', 'CSV']]` |
| `value` | `Optional[str]` |
| `truncated` | `Optional[bool]` |


## Properties

- `error`
- `format`
- `value`
- `truncated`

## Methods

- [`to_json()`](https://reference.langchain.com/python/langchain-community/tools/databricks/_execution/FunctionExecutionResult/to_json)

---

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