'arguments': '{\\n  \"query\": \"weather in NYC yesterday\"\\n}'}\nFunction: New York Temperature Yesterday. Maximum temperature yesterday: 81 ¬∞F (at 1:51 pm) Minimum temperature yesterday: 72 ¬∞F (at 7:17 pm) Average temperature ..."      ]    }    [llm/end] [1:llm:ChatOpenAI] [2.68s] Exiting LLM run with output:    {      "generations": [        [          {            "text": "Today in NYC, the weather is currently 85¬∞F with a southeast wind of 4 mph. The humidity is at 78% and there is 81% cloud cover. There is no rain expected today.\n\nYesterday in NYC, the maximum temperature was 81¬∞F at 1:51 pm, and the minimum temperature was 72¬∞F at 7:17 pm.\n\nFor the day before yesterday, I do not have the specific weather information.",            "generation_info": null,            "message": {              "lc": 1,              "type": "constructor",              "id": [                "langchain",                "schema",                "messages",                "AIMessage"              ],              "kwargs": {                "content": "Today in NYC, the weather is currently 85¬∞F with a southeast wind of 4 mph. The humidity is at 78% and there is 81% cloud cover. There is no rain expected today.\n\nYesterday in NYC, the maximum temperature was 81¬∞F at 1:51 pm, and the minimum temperature was 72¬∞F at 7:17 pm.\n\nFor the day before yesterday, I do not have the specific weather information.",                "additional_kwargs": {}              }            }          }        ]      ],      "llm_output": {        "token_usage": {          "prompt_tokens": 160,          "completion_tokens": 91,          "total_tokens": 251        },        "model_name": "gpt-3.5-turbo-0613"      },      "run": null    }    [chain/end] [1:chain:AgentExecutor] [10.18s] Exiting Chain run with output:    {      "output": "Today in NYC, the weather is currently 85¬∞F with a southeast wind of 4 mph. The humidity is at 78% and there is 81% cloud cover. There is no rain expected
This notebook showcases using an agent that uses the OpenAI functions ability to respond to the prompts of the user using a Large Language Model.
This notebook showcases using an agent that uses the OpenAI functions ability to respond to the prompts of the user using a Large Language Model. ->: 'arguments': '{\\n  \"query\": \"weather in NYC yesterday\"\\n}'}\nFunction: New York Temperature Yesterday. Maximum temperature yesterday: 81 ¬∞F (at 1:51 pm) Minimum temperature yesterday: 72 ¬∞F (at 7:17 pm) Average temperature ..."      ]    }    [llm/end] [1:llm:ChatOpenAI] [2.68s] Exiting LLM run with output:    {      "generations": [        [          {            "text": "Today in NYC, the weather is currently 85¬∞F with a southeast wind of 4 mph. The humidity is at 78% and there is 81% cloud cover. There is no rain expected today.\n\nYesterday in NYC, the maximum temperature was 81¬∞F at 1:51 pm, and the minimum temperature was 72¬∞F at 7:17 pm.\n\nFor the day before yesterday, I do not have the specific weather information.",            "generation_info": null,            "message": {              "lc": 1,              "type": "constructor",              "id": [                "langchain",                "schema",                "messages",                "AIMessage"              ],              "kwargs": {                "content": "Today in NYC, the weather is currently 85¬∞F with a southeast wind of 4 mph. The humidity is at 78% and there is 81% cloud cover. There is no rain expected today.\n\nYesterday in NYC, the maximum temperature was 81¬∞F at 1:51 pm, and the minimum temperature was 72¬∞F at 7:17 pm.\n\nFor the day before yesterday, I do not have the specific weather information.",                "additional_kwargs": {}              }            }          }        ]      ],      "llm_output": {        "token_usage": {          "prompt_tokens": 160,          "completion_tokens": 91,          "total_tokens": 251        },        "model_name": "gpt-3.5-turbo-0613"      },      "run": null    }    [chain/end] [1:chain:AgentExecutor] [10.18s] Exiting Chain run with output:    {      "output": "Today in NYC, the weather is currently 85¬∞F with a southeast wind of 4 mph. The humidity is at 78% and there is 81% cloud cover. There is no rain expected