(
name: str | None = None, return_value: str | None = None, hide_errors: bool = False
)
| 48 | |
| 49 | |
| 50 | def get_function_tool( |
| 51 | name: str | None = None, return_value: str | None = None, hide_errors: bool = False |
| 52 | ) -> FunctionTool: |
| 53 | def _foo() -> str: |
| 54 | return return_value or "result_ok" |
| 55 | |
| 56 | return function_tool( |
| 57 | _foo, |
| 58 | name_override=name, |
| 59 | failure_error_function=None if hide_errors else default_tool_error_function, |
| 60 | ) |
| 61 | |
| 62 | |
| 63 | def get_function_tool_call( |
no test coverage detected