doc: add reason switch and agent function call parameters. e1382cc verified asherszhang commited on Jun 27