Neo4j, Graph, Langchain, Llm, OpenAI.
implementation of an OpenAI agent I implemented some time ago. llm = ChatOpenAI(temperature=0, model="gpt-4-turbo", streaming=True) tools = [NewsTool()] llm_with_tools = llm.bind(functions=[format_tool_to_openai_function(t) for t in tools]) prompt = ChatPromptTemplate.from_messages( [ ( "system",