Extract agent funcionality