()
| 18 | |
| 19 | |
| 20 | def test_no_args_function(): |
| 21 | func_schema = function_schema(no_args_function) |
| 22 | assert func_schema.params_json_schema.get("title") == "no_args_function_args" |
| 23 | assert func_schema.description == "This function has no args." |
| 24 | assert not func_schema.takes_context |
| 25 | |
| 26 | parsed = func_schema.params_pydantic_model() |
| 27 | args, kwargs_dict = func_schema.to_call_args(parsed) |
| 28 | result = no_args_function(*args, **kwargs_dict) |
| 29 | assert result == "ok" |
| 30 | |
| 31 | |
| 32 | def no_args_function_with_context(ctx: RunContextWrapper[str]): |
nothing calls this directly
no test coverage detected