class TestObj(BaseModel): id: str = Field(description="Unique identifier.") def test_fn(obj: TestObj): return 1 FunctionTool.from_defaults(test_fn),
RuntimeError: no validator found for <class 'app.leader_agent.TestObj'>, see arbitrary_types_allowed in Config
def test_fn(obj: str = Field(description="Unique identifier.")):