Function initializeAgentExecutorWithOptions

See new agent creation docs.