Untitled

 avatar
unknown
plain_text
9 months ago
43 kB
2
Indexable
[chain/start] [1:chain:AgentExecutor > 34:chain:RunnableAgent > 38:prompt:ChatPromptTemplate] Entering Chain run with input: {
  "input": "Find me a flight from New York to Paris 2 months from now, and list prices",
  "agent_scratchpad": [
    {
      "lc": 1,
      "type": "constructor",
      "id": [
        "langchain_core",
        "messages",
        "AIMessageChunk"
      ],
      "kwargs": {
        "content": "",
        "additional_kwargs": {
          "function_call": {
            "name": "get-today-date",
            "arguments": "{}"
          }
        },
        "response_metadata": {
          "prompt": 0,
          "completion": 0,
          "finish_reason": "function_call"
        },
        "tool_call_chunks": [],
        "tool_calls": [],
        "invalid_tool_calls": []
      }
    },
    {
      "lc": 1,
      "type": "constructor",
      "id": [
        "langchain_core",
        "messages",
        "FunctionMessage"
      ],
      "kwargs": {
        "content": "2024-06-13T15:28:41.560Z",
        "name": "get-today-date",
        "additional_kwargs": {},
        "response_metadata": {}
      }
    },
    {
      "lc": 1,
      "type": "constructor",
      "id": [
        "langchain_core",
        "messages",
        "AIMessageChunk"
      ],
      "kwargs": {
        "content": "",
        "additional_kwargs": {
          "function_call": {
            "name": "get-entities-id",
            "arguments": "{\"query\":\"New York\"}"
          }
        },
        "response_metadata": {
          "prompt": 0,
          "completion": 0,
          "finish_reason": "function_call"
        },
        "tool_call_chunks": [],
        "tool_calls": [],
        "invalid_tool_calls": []
      }
    },
    {
      "lc": 1,
      "type": "constructor",
      "id": [
        "langchain_core",
        "messages",
        "FunctionMessage"
      ],
      "kwargs": {
        "content": "[{\"name\":\"New York Skyports Seaplane Base\",\"location\":\"New York City, United States\",\"entityId\":\"NYS\"},{\"name\":\"John F. Kennedy International Airport\",\"location\":\"New York City, New York, United States\",\"entityId\":\"JFK\"},{\"name\":\"metropolitan area2\",\"location\":\"New York City, New York, United States\",\"entityId\":\"NYC[1]\"},{\"name\":\"LaGuardia Airport\",\"location\":\"New York City, New York, United States\",\"entityId\":\"LGA\"},{\"name\":\"Oneonta Municipal Airport (FAA: N66)\",\"location\":\"Oneonta, New York, United States\",\"entityId\":\"ONH\"},{\"name\":\"Cortland County Airport (Chase Field, FAA: N03)\",\"location\":\"Cortland, New York, United States\",\"entityId\":\"CTX\"},{\"name\":\"Albany International Airport\",\"location\":\"Albany, New York, United States\",\"entityId\":\"ALB\"},{\"name\":\"Watertown International Airport\",\"location\":\"Watertown, New York, United States\",\"entityId\":\"ART\"},{\"name\":\"Cooperstown-Westville Airport (FAA: K23)\",\"location\":\"Cooperstown, New York, United States\",\"entityId\":\"COP\"},{\"name\":\"Calverton Executive Airpark (FAA: 3C8)\",\"location\":\"Calverton, New York, United States\",\"entityId\":\"CTO\"}]",
        "name": "get-entities-id",
        "additional_kwargs": {},
        "response_metadata": {}
      }
    },
    {
      "lc": 1,
      "type": "constructor",
      "id": [
        "langchain_core",
        "messages",
        "AIMessageChunk"
      ],
      "kwargs": {
        "content": "",
        "additional_kwargs": {
          "function_call": {
            "name": "get-entities-id",
            "arguments": "{\"query\":\"Paris\"}"
          }
        },
        "response_metadata": {
          "prompt": 0,
          "completion": 0,
          "finish_reason": "function_call"
        },
        "tool_call_chunks": [],
        "tool_calls": [],
        "invalid_tool_calls": []
      }
    },
    {
      "lc": 1,
      "type": "constructor",
      "id": [
        "langchain_core",
        "messages",
        "FunctionMessage"
      ],
      "kwargs": {
        "content": "[{\"name\":\"Paros National Airport\",\"location\":\"Paros, Greece\",\"entityId\":\"PAS\"},{\"name\":\"Paris–Le Bourget Airport\",\"location\":\"Paris, Île-de-France, France\",\"entityId\":\"LBG\"},{\"name\":\"Henry County Airport\",\"location\":\"Paris, Tennessee, United States\",\"entityId\":\"PHT\"},{\"name\":\"Cox Field\",\"location\":\"Paris, Texas, United States\",\"entityId\":\"PRX\"},{\"name\":\"Bario Airport\",\"location\":\"Bario, Sarawak, Malaysia\",\"entityId\":\"BBN\"},{\"name\":\"Orly Airport\",\"location\":\"Paris, Île-de-France, France\",\"entityId\":\"ORY\"},{\"name\":\"metropolitan area1\",\"location\":\"Paris, Île-de-France, France\",\"entityId\":\"PAR[1]\"},{\"name\":\"Charles de Gaulle Airport (Roissy Airport)\",\"location\":\"Paris, Île-de-France, France\",\"entityId\":\"CDG\"},{\"name\":\"Pontoise – Cormeilles Aerodrome\",\"location\":\"Paris, Île-de-France, France\",\"entityId\":\"POX\"},{\"name\":\"Dakhla Oasis Airport\",\"location\":\"Dakhla Oasis, Egypt\",\"entityId\":\"DAK\"}]",
        "name": "get-entities-id",
        "additional_kwargs": {},
        "response_metadata": {}
      }
    },
    {
      "lc": 1,
      "type": "constructor",
      "id": [
        "langchain_core",
        "messages",
        "AIMessageChunk"
      ],
      "kwargs": {
        "content": "",
        "additional_kwargs": {
          "function_call": {
            "name": "get-one-way-flights",
            "arguments": "{\"fromEntityId\":\"JFK\",\"toEntityId\":\"CDG\",\"departDate\":\"2024-08-13\"}"
          }
        },
        "response_metadata": {
          "prompt": 0,
          "completion": 0,
          "finish_reason": "function_call"
        },
        "tool_call_chunks": [],
        "tool_calls": [],
        "invalid_tool_calls": []
      }
    },
    {
      "lc": 1,
      "type": "constructor",
      "id": [
        "langchain_core",
        "messages",
        "FunctionMessage"
      ],
      "kwargs": {
        "content": "[{\"id\":\"12712-2408130030--30667-0-10413-2408131335\",\"price\":\"$143\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T00:30:00\",\"arrival\":\"2024-08-13T13:35:00\",\"carriers\":\"Norse Atlantic Airways\"},{\"id\":\"12712-2408131720--32171-0-10413-2408140655\",\"price\":\"$349\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T17:20:00\",\"arrival\":\"2024-08-14T06:55:00\",\"carriers\":\"jetBlue\"},{\"id\":\"12712-2408132141--32171-0-10413-2408141125\",\"price\":\"$349\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T21:41:00\",\"arrival\":\"2024-08-14T11:25:00\",\"carriers\":\"jetBlue\"},{\"id\":\"12712-2408131735--32573-0-10413-2408140655\",\"price\":\"$459\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T17:35:00\",\"arrival\":\"2024-08-14T06:55:00\",\"carriers\":\"American Airlines\"},{\"id\":\"12712-2408131735--32480-0-10413-2408140655\",\"price\":\"$459\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T17:35:00\",\"arrival\":\"2024-08-14T06:55:00\",\"carriers\":\"British Airways\"},{\"id\":\"12712-2408131730--32677-0-10413-2408140645\",\"price\":\"$474\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T17:30:00\",\"arrival\":\"2024-08-14T06:45:00\",\"carriers\":\"Air France\"},{\"id\":\"12712-2408131730--32385-0-10413-2408140645\",\"price\":\"$474\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T17:30:00\",\"arrival\":\"2024-08-14T06:45:00\",\"carriers\":\"Delta\"},{\"id\":\"12712-2408131630--32385-0-10413-2408140555\",\"price\":\"$474\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T16:30:00\",\"arrival\":\"2024-08-14T05:55:00\",\"carriers\":\"Delta\"},{\"id\":\"12712-2408132315--32677-0-10413-2408141240\",\"price\":\"$474\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T23:15:00\",\"arrival\":\"2024-08-14T12:40:00\",\"carriers\":\"Air France\"},{\"id\":\"12712-2408131630--32677-0-10413-2408140555\",\"price\":\"$474\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T16:30:00\",\"arrival\":\"2024-08-14T05:55:00\",\"carriers\":\"Air France\"}]",
        "name": "get-one-way-flights",
        "additional_kwargs": {},
        "response_metadata": {}
      }
    }
  ]
}
[chain/end] [1:chain:AgentExecutor > 34:chain:RunnableAgent > 38:prompt:ChatPromptTemplate] [8ms] Exiting Chain run with output: {
  "lc": 1,
  "type": "constructor",
  "id": [
    "langchain_core",
    "prompt_values",
    "ChatPromptValue"
  ],
  "kwargs": {
    "messages": [
      {
        "lc": 1,
        "type": "constructor",
        "id": [
          "langchain_core",
          "messages",
          "SystemMessage"
        ],
        "kwargs": {
          "content": "You are very powerful assistant, but don't know current events",
          "additional_kwargs": {},
          "response_metadata": {}
        }
      },
      {
        "lc": 1,
        "type": "constructor",
        "id": [
          "langchain_core",
          "messages",
          "HumanMessage"
        ],
        "kwargs": {
          "content": "Find me a flight from New York to Paris 2 months from now, and list prices",
          "additional_kwargs": {},
          "response_metadata": {}
        }
      },
      {
        "lc": 1,
        "type": "constructor",
        "id": [
          "langchain_core",
          "messages",
          "AIMessageChunk"
        ],
        "kwargs": {
          "content": "",
          "additional_kwargs": {
            "function_call": {
              "name": "get-today-date",
              "arguments": "{}"
            }
          },
          "response_metadata": {
            "prompt": 0,
            "completion": 0,
            "finish_reason": "function_call"
          },
          "tool_call_chunks": [],
          "tool_calls": [],
          "invalid_tool_calls": []
        }
      },
      {
        "lc": 1,
        "type": "constructor",
        "id": [
          "langchain_core",
          "messages",
          "FunctionMessage"
        ],
        "kwargs": {
          "content": "2024-06-13T15:28:41.560Z",
          "name": "get-today-date",
          "additional_kwargs": {},
          "response_metadata": {}
        }
      },
      {
        "lc": 1,
        "type": "constructor",
        "id": [
          "langchain_core",
          "messages",
          "AIMessageChunk"
        ],
        "kwargs": {
          "content": "",
          "additional_kwargs": {
            "function_call": {
              "name": "get-entities-id",
              "arguments": "{\"query\":\"New York\"}"
            }
          },
          "response_metadata": {
            "prompt": 0,
            "completion": 0,
            "finish_reason": "function_call"
          },
          "tool_call_chunks": [],
          "tool_calls": [],
          "invalid_tool_calls": []
        }
      },
      {
        "lc": 1,
        "type": "constructor",
        "id": [
          "langchain_core",
          "messages",
          "FunctionMessage"
        ],
        "kwargs": {
          "content": "[{\"name\":\"New York Skyports Seaplane Base\",\"location\":\"New York City, United States\",\"entityId\":\"NYS\"},{\"name\":\"John F. Kennedy International Airport\",\"location\":\"New York City, New York, United States\",\"entityId\":\"JFK\"},{\"name\":\"metropolitan area2\",\"location\":\"New York City, New York, United States\",\"entityId\":\"NYC[1]\"},{\"name\":\"LaGuardia Airport\",\"location\":\"New York City, New York, United States\",\"entityId\":\"LGA\"},{\"name\":\"Oneonta Municipal Airport (FAA: N66)\",\"location\":\"Oneonta, New York, United States\",\"entityId\":\"ONH\"},{\"name\":\"Cortland County Airport (Chase Field, FAA: N03)\",\"location\":\"Cortland, New York, United States\",\"entityId\":\"CTX\"},{\"name\":\"Albany International Airport\",\"location\":\"Albany, New York, United States\",\"entityId\":\"ALB\"},{\"name\":\"Watertown International Airport\",\"location\":\"Watertown, New York, United States\",\"entityId\":\"ART\"},{\"name\":\"Cooperstown-Westville Airport (FAA: K23)\",\"location\":\"Cooperstown, New York, United States\",\"entityId\":\"COP\"},{\"name\":\"Calverton Executive Airpark (FAA: 3C8)\",\"location\":\"Calverton, New York, United States\",\"entityId\":\"CTO\"}]",
          "name": "get-entities-id",
          "additional_kwargs": {},
          "response_metadata": {}
        }
      },
      {
        "lc": 1,
        "type": "constructor",
        "id": [
          "langchain_core",
          "messages",
          "AIMessageChunk"
        ],
        "kwargs": {
          "content": "",
          "additional_kwargs": {
            "function_call": {
              "name": "get-entities-id",
              "arguments": "{\"query\":\"Paris\"}"
            }
          },
          "response_metadata": {
            "prompt": 0,
            "completion": 0,
            "finish_reason": "function_call"
          },
          "tool_call_chunks": [],
          "tool_calls": [],
          "invalid_tool_calls": []
        }
      },
      {
        "lc": 1,
        "type": "constructor",
        "id": [
          "langchain_core",
          "messages",
          "FunctionMessage"
        ],
        "kwargs": {
          "content": "[{\"name\":\"Paros National Airport\",\"location\":\"Paros, Greece\",\"entityId\":\"PAS\"},{\"name\":\"Paris–Le Bourget Airport\",\"location\":\"Paris, Île-de-France, France\",\"entityId\":\"LBG\"},{\"name\":\"Henry County Airport\",\"location\":\"Paris, Tennessee, United States\",\"entityId\":\"PHT\"},{\"name\":\"Cox Field\",\"location\":\"Paris, Texas, United States\",\"entityId\":\"PRX\"},{\"name\":\"Bario Airport\",\"location\":\"Bario, Sarawak, Malaysia\",\"entityId\":\"BBN\"},{\"name\":\"Orly Airport\",\"location\":\"Paris, Île-de-France, France\",\"entityId\":\"ORY\"},{\"name\":\"metropolitan area1\",\"location\":\"Paris, Île-de-France, France\",\"entityId\":\"PAR[1]\"},{\"name\":\"Charles de Gaulle Airport (Roissy Airport)\",\"location\":\"Paris, Île-de-France, France\",\"entityId\":\"CDG\"},{\"name\":\"Pontoise – Cormeilles Aerodrome\",\"location\":\"Paris, Île-de-France, France\",\"entityId\":\"POX\"},{\"name\":\"Dakhla Oasis Airport\",\"location\":\"Dakhla Oasis, Egypt\",\"entityId\":\"DAK\"}]",
          "name": "get-entities-id",
          "additional_kwargs": {},
          "response_metadata": {}
        }
      },
      {
        "lc": 1,
        "type": "constructor",
        "id": [
          "langchain_core",
          "messages",
          "AIMessageChunk"
        ],
        "kwargs": {
          "content": "",
          "additional_kwargs": {
            "function_call": {
              "name": "get-one-way-flights",
              "arguments": "{\"fromEntityId\":\"JFK\",\"toEntityId\":\"CDG\",\"departDate\":\"2024-08-13\"}"
            }
          },
          "response_metadata": {
            "prompt": 0,
            "completion": 0,
            "finish_reason": "function_call"
          },
          "tool_call_chunks": [],
          "tool_calls": [],
          "invalid_tool_calls": []
        }
      },
      {
        "lc": 1,
        "type": "constructor",
        "id": [
          "langchain_core",
          "messages",
          "FunctionMessage"
        ],
        "kwargs": {
          "content": "[{\"id\":\"12712-2408130030--30667-0-10413-2408131335\",\"price\":\"$143\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T00:30:00\",\"arrival\":\"2024-08-13T13:35:00\",\"carriers\":\"Norse Atlantic Airways\"},{\"id\":\"12712-2408131720--32171-0-10413-2408140655\",\"price\":\"$349\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T17:20:00\",\"arrival\":\"2024-08-14T06:55:00\",\"carriers\":\"jetBlue\"},{\"id\":\"12712-2408132141--32171-0-10413-2408141125\",\"price\":\"$349\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T21:41:00\",\"arrival\":\"2024-08-14T11:25:00\",\"carriers\":\"jetBlue\"},{\"id\":\"12712-2408131735--32573-0-10413-2408140655\",\"price\":\"$459\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T17:35:00\",\"arrival\":\"2024-08-14T06:55:00\",\"carriers\":\"American Airlines\"},{\"id\":\"12712-2408131735--32480-0-10413-2408140655\",\"price\":\"$459\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T17:35:00\",\"arrival\":\"2024-08-14T06:55:00\",\"carriers\":\"British Airways\"},{\"id\":\"12712-2408131730--32677-0-10413-2408140645\",\"price\":\"$474\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T17:30:00\",\"arrival\":\"2024-08-14T06:45:00\",\"carriers\":\"Air France\"},{\"id\":\"12712-2408131730--32385-0-10413-2408140645\",\"price\":\"$474\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T17:30:00\",\"arrival\":\"2024-08-14T06:45:00\",\"carriers\":\"Delta\"},{\"id\":\"12712-2408131630--32385-0-10413-2408140555\",\"price\":\"$474\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T16:30:00\",\"arrival\":\"2024-08-14T05:55:00\",\"carriers\":\"Delta\"},{\"id\":\"12712-2408132315--32677-0-10413-2408141240\",\"price\":\"$474\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T23:15:00\",\"arrival\":\"2024-08-14T12:40:00\",\"carriers\":\"Air France\"},{\"id\":\"12712-2408131630--32677-0-10413-2408140555\",\"price\":\"$474\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T16:30:00\",\"arrival\":\"2024-08-14T05:55:00\",\"carriers\":\"Air France\"}]",
          "name": "get-one-way-flights",
          "additional_kwargs": {},
          "response_metadata": {}
        }
      }
    ]
  }
}
[llm/start] [1:chain:AgentExecutor > 34:chain:RunnableAgent > 39:llm:ChatOpenAI] Entering LLM run with input: {
  "messages": [
    [
      {
        "lc": 1,
        "type": "constructor",
        "id": [
          "langchain_core",
          "messages",
          "SystemMessage"
        ],
        "kwargs": {
          "content": "You are very powerful assistant, but don't know current events",
          "additional_kwargs": {},
          "response_metadata": {}
        }
      },
      {
        "lc": 1,
        "type": "constructor",
        "id": [
          "langchain_core",
          "messages",
          "HumanMessage"
        ],
        "kwargs": {
          "content": "Find me a flight from New York to Paris 2 months from now, and list prices",
          "additional_kwargs": {},
          "response_metadata": {}
        }
      },
      {
        "lc": 1,
        "type": "constructor",
        "id": [
          "langchain_core",
          "messages",
          "AIMessageChunk"
        ],
        "kwargs": {
          "content": "",
          "additional_kwargs": {
            "function_call": {
              "name": "get-today-date",
              "arguments": "{}"
            }
          },
          "response_metadata": {
            "prompt": 0,
            "completion": 0,
            "finish_reason": "function_call"
          },
          "tool_call_chunks": [],
          "tool_calls": [],
          "invalid_tool_calls": []
        }
      },
      {
        "lc": 1,
        "type": "constructor",
        "id": [
          "langchain_core",
          "messages",
          "FunctionMessage"
        ],
        "kwargs": {
          "content": "2024-06-13T15:28:41.560Z",
          "name": "get-today-date",
          "additional_kwargs": {},
          "response_metadata": {}
        }
      },
      {
        "lc": 1,
        "type": "constructor",
        "id": [
          "langchain_core",
          "messages",
          "AIMessageChunk"
        ],
        "kwargs": {
          "content": "",
          "additional_kwargs": {
            "function_call": {
              "name": "get-entities-id",
              "arguments": "{\"query\":\"New York\"}"
            }
          },
          "response_metadata": {
            "prompt": 0,
            "completion": 0,
            "finish_reason": "function_call"
          },
          "tool_call_chunks": [],
          "tool_calls": [],
          "invalid_tool_calls": []
        }
      },
      {
        "lc": 1,
        "type": "constructor",
        "id": [
          "langchain_core",
          "messages",
          "FunctionMessage"
        ],
        "kwargs": {
          "content": "[{\"name\":\"New York Skyports Seaplane Base\",\"location\":\"New York City, United States\",\"entityId\":\"NYS\"},{\"name\":\"John F. Kennedy International Airport\",\"location\":\"New York City, New York, United States\",\"entityId\":\"JFK\"},{\"name\":\"metropolitan area2\",\"location\":\"New York City, New York, United States\",\"entityId\":\"NYC[1]\"},{\"name\":\"LaGuardia Airport\",\"location\":\"New York City, New York, United States\",\"entityId\":\"LGA\"},{\"name\":\"Oneonta Municipal Airport (FAA: N66)\",\"location\":\"Oneonta, New York, United States\",\"entityId\":\"ONH\"},{\"name\":\"Cortland County Airport (Chase Field, FAA: N03)\",\"location\":\"Cortland, New York, United States\",\"entityId\":\"CTX\"},{\"name\":\"Albany International Airport\",\"location\":\"Albany, New York, United States\",\"entityId\":\"ALB\"},{\"name\":\"Watertown International Airport\",\"location\":\"Watertown, New York, United States\",\"entityId\":\"ART\"},{\"name\":\"Cooperstown-Westville Airport (FAA: K23)\",\"location\":\"Cooperstown, New York, United States\",\"entityId\":\"COP\"},{\"name\":\"Calverton Executive Airpark (FAA: 3C8)\",\"location\":\"Calverton, New York, United States\",\"entityId\":\"CTO\"}]",
          "name": "get-entities-id",
          "additional_kwargs": {},
          "response_metadata": {}
        }
      },
      {
        "lc": 1,
        "type": "constructor",
        "id": [
          "langchain_core",
          "messages",
          "AIMessageChunk"
        ],
        "kwargs": {
          "content": "",
          "additional_kwargs": {
            "function_call": {
              "name": "get-entities-id",
              "arguments": "{\"query\":\"Paris\"}"
            }
          },
          "response_metadata": {
            "prompt": 0,
            "completion": 0,
            "finish_reason": "function_call"
          },
          "tool_call_chunks": [],
          "tool_calls": [],
          "invalid_tool_calls": []
        }
      },
      {
        "lc": 1,
        "type": "constructor",
        "id": [
          "langchain_core",
          "messages",
          "FunctionMessage"
        ],
        "kwargs": {
          "content": "[{\"name\":\"Paros National Airport\",\"location\":\"Paros, Greece\",\"entityId\":\"PAS\"},{\"name\":\"Paris–Le Bourget Airport\",\"location\":\"Paris, Île-de-France, France\",\"entityId\":\"LBG\"},{\"name\":\"Henry County Airport\",\"location\":\"Paris, Tennessee, United States\",\"entityId\":\"PHT\"},{\"name\":\"Cox Field\",\"location\":\"Paris, Texas, United States\",\"entityId\":\"PRX\"},{\"name\":\"Bario Airport\",\"location\":\"Bario, Sarawak, Malaysia\",\"entityId\":\"BBN\"},{\"name\":\"Orly Airport\",\"location\":\"Paris, Île-de-France, France\",\"entityId\":\"ORY\"},{\"name\":\"metropolitan area1\",\"location\":\"Paris, Île-de-France, France\",\"entityId\":\"PAR[1]\"},{\"name\":\"Charles de Gaulle Airport (Roissy Airport)\",\"location\":\"Paris, Île-de-France, France\",\"entityId\":\"CDG\"},{\"name\":\"Pontoise – Cormeilles Aerodrome\",\"location\":\"Paris, Île-de-France, France\",\"entityId\":\"POX\"},{\"name\":\"Dakhla Oasis Airport\",\"location\":\"Dakhla Oasis, Egypt\",\"entityId\":\"DAK\"}]",
          "name": "get-entities-id",
          "additional_kwargs": {},
          "response_metadata": {}
        }
      },
      {
        "lc": 1,
        "type": "constructor",
        "id": [
          "langchain_core",
          "messages",
          "AIMessageChunk"
        ],
        "kwargs": {
          "content": "",
          "additional_kwargs": {
            "function_call": {
              "name": "get-one-way-flights",
              "arguments": "{\"fromEntityId\":\"JFK\",\"toEntityId\":\"CDG\",\"departDate\":\"2024-08-13\"}"
            }
          },
          "response_metadata": {
            "prompt": 0,
            "completion": 0,
            "finish_reason": "function_call"
          },
          "tool_call_chunks": [],
          "tool_calls": [],
          "invalid_tool_calls": []
        }
      },
      {
        "lc": 1,
        "type": "constructor",
        "id": [
          "langchain_core",
          "messages",
          "FunctionMessage"
        ],
        "kwargs": {
          "content": "[{\"id\":\"12712-2408130030--30667-0-10413-2408131335\",\"price\":\"$143\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T00:30:00\",\"arrival\":\"2024-08-13T13:35:00\",\"carriers\":\"Norse Atlantic Airways\"},{\"id\":\"12712-2408131720--32171-0-10413-2408140655\",\"price\":\"$349\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T17:20:00\",\"arrival\":\"2024-08-14T06:55:00\",\"carriers\":\"jetBlue\"},{\"id\":\"12712-2408132141--32171-0-10413-2408141125\",\"price\":\"$349\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T21:41:00\",\"arrival\":\"2024-08-14T11:25:00\",\"carriers\":\"jetBlue\"},{\"id\":\"12712-2408131735--32573-0-10413-2408140655\",\"price\":\"$459\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T17:35:00\",\"arrival\":\"2024-08-14T06:55:00\",\"carriers\":\"American Airlines\"},{\"id\":\"12712-2408131735--32480-0-10413-2408140655\",\"price\":\"$459\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T17:35:00\",\"arrival\":\"2024-08-14T06:55:00\",\"carriers\":\"British Airways\"},{\"id\":\"12712-2408131730--32677-0-10413-2408140645\",\"price\":\"$474\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T17:30:00\",\"arrival\":\"2024-08-14T06:45:00\",\"carriers\":\"Air France\"},{\"id\":\"12712-2408131730--32385-0-10413-2408140645\",\"price\":\"$474\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T17:30:00\",\"arrival\":\"2024-08-14T06:45:00\",\"carriers\":\"Delta\"},{\"id\":\"12712-2408131630--32385-0-10413-2408140555\",\"price\":\"$474\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T16:30:00\",\"arrival\":\"2024-08-14T05:55:00\",\"carriers\":\"Delta\"},{\"id\":\"12712-2408132315--32677-0-10413-2408141240\",\"price\":\"$474\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T23:15:00\",\"arrival\":\"2024-08-14T12:40:00\",\"carriers\":\"Air France\"},{\"id\":\"12712-2408131630--32677-0-10413-2408140555\",\"price\":\"$474\",\"origin\":\"New York John F. Kennedy\",\"destination\":\"Paris Charles de Gaulle\",\"departure\":\"2024-08-13T16:30:00\",\"arrival\":\"2024-08-14T05:55:00\",\"carriers\":\"Air France\"}]",
          "name": "get-one-way-flights",
          "additional_kwargs": {},
          "response_metadata": {}
        }
      }
    ]
  ]
}
[llm/end] [1:chain:AgentExecutor > 34:chain:RunnableAgent > 39:llm:ChatOpenAI] [13.78s] Exiting LLM run with output: {
  "generations": [
    [
      {
        "text": "Here are some available flights from New York John F. Kennedy (JFK) to Paris Charles de Gaulle (CDG) for August 13th, 2024:\n\n1. **Norse Atlantic Airways**\n   - **Price:** $143\n   - **Departure:** 00:30, August 13\n   - **Arrival:** 13:35, August 13\n\n2. **jetBlue**\n   - **Price:** $349\n   - **Departure:** 17:20, August 13\n   - **Arrival:** 06:55, August 14\n\n3. **jetBlue**\n   - **Price:** $349\n   - **Departure:** 21:41, August 13\n   - **Arrival:** 11:25, August 14\n\n4. **American Airlines**\n   - **Price:** $459\n   - **Departure:** 17:35, August 13\n   - **Arrival:** 06:55, August 14\n\n5. **British Airways**\n   - **Price:** $459\n   - **Departure:** 17:35, August 13\n   - **Arrival:** 06:55, August 14\n\n6. **Air France**\n   - **Price:** $474\n   - **Departure:** 17:30, August 13\n   - **Arrival:** 06:45, August 14\n\n7. **Delta**\n   - **Price:** $474\n   - **Departure:** 17:30, August 13\n   - **Arrival:** 06:45, August 14\n\n8. **Delta**\n   - **Price:** $474\n   - **Departure:** 16:30, August 13\n   - **Arrival:** 05:55, August 14\n\n9. **Air France**\n   - **Price:** $474\n   - **Departure:** 23:15, August 13\n   - **Arrival:** 12:40, August 14\n\n10. **Air France**\n    - **Price:** $474\n    - **Departure:** 16:30, August 13\n    - **Arrival:** 05:55, August 14\n\nLet me know if you need more details or have any other questions!",
        "generationInfo": {
          "prompt": 0,
          "completion": 0,
          "finish_reason": "stop"
        },
        "message": {
          "lc": 1,
          "type": "constructor",
          "id": [
            "langchain_core",
            "messages",
            "AIMessageChunk"
          ],
          "kwargs": {
            "content": "Here are some available flights from New York John F. Kennedy (JFK) to Paris Charles de Gaulle (CDG) for August 13th, 2024:\n\n1. **Norse Atlantic Airways**\n   - **Price:** $143\n   - **Departure:** 00:30, August 13\n   - **Arrival:** 13:35, August 13\n\n2. **jetBlue**\n   - **Price:** $349\n   - **Departure:** 17:20, August 13\n   - **Arrival:** 06:55, August 14\n\n3. **jetBlue**\n   - **Price:** $349\n   - **Departure:** 21:41, August 13\n   - **Arrival:** 11:25, August 14\n\n4. **American Airlines**\n   - **Price:** $459\n   - **Departure:** 17:35, August 13\n   - **Arrival:** 06:55, August 14\n\n5. **British Airways**\n   - **Price:** $459\n   - **Departure:** 17:35, August 13\n   - **Arrival:** 06:55, August 14\n\n6. **Air France**\n   - **Price:** $474\n   - **Departure:** 17:30, August 13\n   - **Arrival:** 06:45, August 14\n\n7. **Delta**\n   - **Price:** $474\n   - **Departure:** 17:30, August 13\n   - **Arrival:** 06:45, August 14\n\n8. **Delta**\n   - **Price:** $474\n   - **Departure:** 16:30, August 13\n   - **Arrival:** 05:55, August 14\n\n9. **Air France**\n   - **Price:** $474\n   - **Departure:** 23:15, August 13\n   - **Arrival:** 12:40, August 14\n\n10. **Air France**\n    - **Price:** $474\n    - **Departure:** 16:30, August 13\n    - **Arrival:** 05:55, August 14\n\nLet me know if you need more details or have any other questions!",
            "additional_kwargs": {},
            "response_metadata": {
              "prompt": 0,
              "completion": 0,
              "finish_reason": "stop"
            },
            "tool_call_chunks": [],
            "tool_calls": [],
            "invalid_tool_calls": []
          }
        }
      }
    ]
  ]
}
[chain/start] [1:chain:AgentExecutor > 34:chain:RunnableAgent > 40:parser:OpenAIFunctionsAgentOutputParser] Entering Chain run with input: {
  "lc": 1,
  "type": "constructor",
  "id": [
    "langchain_core",
    "messages",
    "AIMessageChunk"
  ],
  "kwargs": {
    "content": "Here are some available flights from New York John F. Kennedy (JFK) to Paris Charles de Gaulle (CDG) for August 13th, 2024:\n\n1. **Norse Atlantic Airways**\n   - **Price:** $143\n   - **Departure:** 00:30, August 13\n   - **Arrival:** 13:35, August 13\n\n2. **jetBlue**\n   - **Price:** $349\n   - **Departure:** 17:20, August 13\n   - **Arrival:** 06:55, August 14\n\n3. **jetBlue**\n   - **Price:** $349\n   - **Departure:** 21:41, August 13\n   - **Arrival:** 11:25, August 14\n\n4. **American Airlines**\n   - **Price:** $459\n   - **Departure:** 17:35, August 13\n   - **Arrival:** 06:55, August 14\n\n5. **British Airways**\n   - **Price:** $459\n   - **Departure:** 17:35, August 13\n   - **Arrival:** 06:55, August 14\n\n6. **Air France**\n   - **Price:** $474\n   - **Departure:** 17:30, August 13\n   - **Arrival:** 06:45, August 14\n\n7. **Delta**\n   - **Price:** $474\n   - **Departure:** 17:30, August 13\n   - **Arrival:** 06:45, August 14\n\n8. **Delta**\n   - **Price:** $474\n   - **Departure:** 16:30, August 13\n   - **Arrival:** 05:55, August 14\n\n9. **Air France**\n   - **Price:** $474\n   - **Departure:** 23:15, August 13\n   - **Arrival:** 12:40, August 14\n\n10. **Air France**\n    - **Price:** $474\n    - **Departure:** 16:30, August 13\n    - **Arrival:** 05:55, August 14\n\nLet me know if you need more details or have any other questions!",
    "additional_kwargs": {},
    "response_metadata": {
      "prompt": 0,
      "completion": 0,
      "finish_reason": "stop"
    },
    "tool_call_chunks": [],
    "tool_calls": [],
    "invalid_tool_calls": []
  }
}
[chain/end] [1:chain:AgentExecutor > 34:chain:RunnableAgent > 40:parser:OpenAIFunctionsAgentOutputParser] [1ms] Exiting Chain run with output: {
  "returnValues": {
    "output": "Here are some available flights from New York John F. Kennedy (JFK) to Paris Charles de Gaulle (CDG) for August 13th, 2024:\n\n1. **Norse Atlantic Airways**\n   - **Price:** $143\n   - **Departure:** 00:30, August 13\n   - **Arrival:** 13:35, August 13\n\n2. **jetBlue**\n   - **Price:** $349\n   - **Departure:** 17:20, August 13\n   - **Arrival:** 06:55, August 14\n\n3. **jetBlue**\n   - **Price:** $349\n   - **Departure:** 21:41, August 13\n   - **Arrival:** 11:25, August 14\n\n4. **American Airlines**\n   - **Price:** $459\n   - **Departure:** 17:35, August 13\n   - **Arrival:** 06:55, August 14\n\n5. **British Airways**\n   - **Price:** $459\n   - **Departure:** 17:35, August 13\n   - **Arrival:** 06:55, August 14\n\n6. **Air France**\n   - **Price:** $474\n   - **Departure:** 17:30, August 13\n   - **Arrival:** 06:45, August 14\n\n7. **Delta**\n   - **Price:** $474\n   - **Departure:** 17:30, August 13\n   - **Arrival:** 06:45, August 14\n\n8. **Delta**\n   - **Price:** $474\n   - **Departure:** 16:30, August 13\n   - **Arrival:** 05:55, August 14\n\n9. **Air France**\n   - **Price:** $474\n   - **Departure:** 23:15, August 13\n   - **Arrival:** 12:40, August 14\n\n10. **Air France**\n    - **Price:** $474\n    - **Departure:** 16:30, August 13\n    - **Arrival:** 05:55, August 14\n\nLet me know if you need more details or have any other questions!"
  },
  "log": "Here are some available flights from New York John F. Kennedy (JFK) to Paris Charles de Gaulle (CDG) for August 13th, 2024:\n\n1. **Norse Atlantic Airways**\n   - **Price:** $143\n   - **Departure:** 00:30, August 13\n   - **Arrival:** 13:35, August 13\n\n2. **jetBlue**\n   - **Price:** $349\n   - **Departure:** 17:20, August 13\n   - **Arrival:** 06:55, August 14\n\n3. **jetBlue**\n   - **Price:** $349\n   - **Departure:** 21:41, August 13\n   - **Arrival:** 11:25, August 14\n\n4. **American Airlines**\n   - **Price:** $459\n   - **Departure:** 17:35, August 13\n   - **Arrival:** 06:55, August 14\n\n5. **British Airways**\n   - **Price:** $459\n   - **Departure:** 17:35, August 13\n   - **Arrival:** 06:55, August 14\n\n6. **Air France**\n   - **Price:** $474\n   - **Departure:** 17:30, August 13\n   - **Arrival:** 06:45, August 14\n\n7. **Delta**\n   - **Price:** $474\n   - **Departure:** 17:30, August 13\n   - **Arrival:** 06:45, August 14\n\n8. **Delta**\n   - **Price:** $474\n   - **Departure:** 16:30, August 13\n   - **Arrival:** 05:55, August 14\n\n9. **Air France**\n   - **Price:** $474\n   - **Departure:** 23:15, August 13\n   - **Arrival:** 12:40, August 14\n\n10. **Air France**\n    - **Price:** $474\n    - **Departure:** 16:30, August 13\n    - **Arrival:** 05:55, August 14\n\nLet me know if you need more details or have any other questions!"
}
[chain/end] [1:chain:AgentExecutor > 34:chain:RunnableAgent] [13.82s] Exiting Chain run with output: {
  "returnValues": {
    "output": "Here are some available flights from New York John F. Kennedy (JFK) to Paris Charles de Gaulle (CDG) for August 13th, 2024:\n\n1. **Norse Atlantic Airways**\n   - **Price:** $143\n   - **Departure:** 00:30, August 13\n   - **Arrival:** 13:35, August 13\n\n2. **jetBlue**\n   - **Price:** $349\n   - **Departure:** 17:20, August 13\n   - **Arrival:** 06:55, August 14\n\n3. **jetBlue**\n   - **Price:** $349\n   - **Departure:** 21:41, August 13\n   - **Arrival:** 11:25, August 14\n\n4. **American Airlines**\n   - **Price:** $459\n   - **Departure:** 17:35, August 13\n   - **Arrival:** 06:55, August 14\n\n5. **British Airways**\n   - **Price:** $459\n   - **Departure:** 17:35, August 13\n   - **Arrival:** 06:55, August 14\n\n6. **Air France**\n   - **Price:** $474\n   - **Departure:** 17:30, August 13\n   - **Arrival:** 06:45, August 14\n\n7. **Delta**\n   - **Price:** $474\n   - **Departure:** 17:30, August 13\n   - **Arrival:** 06:45, August 14\n\n8. **Delta**\n   - **Price:** $474\n   - **Departure:** 16:30, August 13\n   - **Arrival:** 05:55, August 14\n\n9. **Air France**\n   - **Price:** $474\n   - **Departure:** 23:15, August 13\n   - **Arrival:** 12:40, August 14\n\n10. **Air France**\n    - **Price:** $474\n    - **Departure:** 16:30, August 13\n    - **Arrival:** 05:55, August 14\n\nLet me know if you need more details or have any other questions!"
  },
  "log": "Here are some available flights from New York John F. Kennedy (JFK) to Paris Charles de Gaulle (CDG) for August 13th, 2024:\n\n1. **Norse Atlantic Airways**\n   - **Price:** $143\n   - **Departure:** 00:30, August 13\n   - **Arrival:** 13:35, August 13\n\n2. **jetBlue**\n   - **Price:** $349\n   - **Departure:** 17:20, August 13\n   - **Arrival:** 06:55, August 14\n\n3. **jetBlue**\n   - **Price:** $349\n   - **Departure:** 21:41, August 13\n   - **Arrival:** 11:25, August 14\n\n4. **American Airlines**\n   - **Price:** $459\n   - **Departure:** 17:35, August 13\n   - **Arrival:** 06:55, August 14\n\n5. **British Airways**\n   - **Price:** $459\n   - **Departure:** 17:35, August 13\n   - **Arrival:** 06:55, August 14\n\n6. **Air France**\n   - **Price:** $474\n   - **Departure:** 17:30, August 13\n   - **Arrival:** 06:45, August 14\n\n7. **Delta**\n   - **Price:** $474\n   - **Departure:** 17:30, August 13\n   - **Arrival:** 06:45, August 14\n\n8. **Delta**\n   - **Price:** $474\n   - **Departure:** 16:30, August 13\n   - **Arrival:** 05:55, August 14\n\n9. **Air France**\n   - **Price:** $474\n   - **Departure:** 23:15, August 13\n   - **Arrival:** 12:40, August 14\n\n10. **Air France**\n    - **Price:** $474\n    - **Departure:** 16:30, August 13\n    - **Arrival:** 05:55, August 14\n\nLet me know if you need more details or have any other questions!"
}
[chain/end] [1:chain:AgentExecutor] [20.39s] Exiting Chain run with output: {
  "input": "Find me a flight from New York to Paris 2 months from now, and list prices",
  "output": "Here are some available flights from New York John F. Kennedy (JFK) to Paris Charles de Gaulle (CDG) for August 13th, 2024:\n\n1. **Norse Atlantic Airways**\n   - **Price:** $143\n   - **Departure:** 00:30, August 13\n   - **Arrival:** 13:35, August 13\n\n2. **jetBlue**\n   - **Price:** $349\n   - **Departure:** 17:20, August 13\n   - **Arrival:** 06:55, August 14\n\n3. **jetBlue**\n   - **Price:** $349\n   - **Departure:** 21:41, August 13\n   - **Arrival:** 11:25, August 14\n\n4. **American Airlines**\n   - **Price:** $459\n   - **Departure:** 17:35, August 13\n   - **Arrival:** 06:55, August 14\n\n5. **British Airways**\n   - **Price:** $459\n   - **Departure:** 17:35, August 13\n   - **Arrival:** 06:55, August 14\n\n6. **Air France**\n   - **Price:** $474\n   - **Departure:** 17:30, August 13\n   - **Arrival:** 06:45, August 14\n\n7. **Delta**\n   - **Price:** $474\n   - **Departure:** 17:30, August 13\n   - **Arrival:** 06:45, August 14\n\n8. **Delta**\n   - **Price:** $474\n   - **Departure:** 16:30, August 13\n   - **Arrival:** 05:55, August 14\n\n9. **Air France**\n   - **Price:** $474\n   - **Departure:** 23:15, August 13\n   - **Arrival:** 12:40, August 14\n\n10. **Air France**\n    - **Price:** $474\n    - **Departure:** 16:30, August 13\n    - **Arrival:** 05:55, August 14\n\nLet me know if you need more details or have any other questions!"
}
{
  input: 'Find me a flight from New York to Paris 2 months from now, and list prices',
  output: 'Here are some available flights from New York John F. Kennedy (JFK) to Paris Charles de Gaulle (CDG) for August 13th, 2024:\n' +
    '\n' +
    '1. **Norse Atlantic Airways**\n' +
    '   - **Price:** $143\n' +
    '   - **Departure:** 00:30, August 13\n' +
    '   - **Arrival:** 13:35, August 13\n' +
    '\n' +
    '2. **jetBlue**\n' +
    '   - **Price:** $349\n' +
    '   - **Departure:** 17:20, August 13\n' +
    '   - **Arrival:** 06:55, August 14\n' +
    '\n' +
    '3. **jetBlue**\n' +
    '   - **Price:** $349\n' +
    '   - **Departure:** 21:41, August 13\n' +
    '   - **Arrival:** 11:25, August 14\n' +
    '\n' +
    '4. **American Airlines**\n' +
    '   - **Price:** $459\n' +
    '   - **Departure:** 17:35, August 13\n' +
    '   - **Arrival:** 06:55, August 14\n' +
    '\n' +
    '5. **British Airways**\n' +
    '   - **Price:** $459\n' +
    '   - **Departure:** 17:35, August 13\n' +
    '   - **Arrival:** 06:55, August 14\n' +
    '\n' +
    '6. **Air France**\n' +
    '   - **Price:** $474\n' +
    '   - **Departure:** 17:30, August 13\n' +
    '   - **Arrival:** 06:45, August 14\n' +
    '\n' +
    '7. **Delta**\n' +
    '   - **Price:** $474\n' +
    '   - **Departure:** 17:30, August 13\n' +
    '   - **Arrival:** 06:45, August 14\n' +
    '\n' +
    '8. **Delta**\n' +
    '   - **Price:** $474\n' +
    '   - **Departure:** 16:30, August 13\n' +
    '   - **Arrival:** 05:55, August 14\n' +
    '\n' +
    '9. **Air France**\n' +
    '   - **Price:** $474\n' +
    '   - **Departure:** 23:15, August 13\n' +
    '   - **Arrival:** 12:40, August 14\n' +
    '\n' +
    '10. **Air France**\n' +
    '    - **Price:** $474\n' +
    '    - **Departure:** 16:30, August 13\n' +
    '    - **Arrival:** 05:55, August 14\n' +
    '\n' +
    'Let me know if you need more details or have any other questions!'
}
Editor is loading...
Leave a Comment