from langchain_anthropic import ChatAnthropic
from langchain.agents import create_agent
llm = ChatAnthropic(
model="claude-3-5-sonnet-20240620",
)
langgraph_agent_executor = create_agent(llm, stripe_agent_toolkit.get_tools())
input_state = {
"messages": """
Create a payment link for a new product called 'test' with a price
of $100. Come up with a funny description about buy bots,
maybe a haiku.
""",
}
output_state = langgraph_agent_executor.invoke(input_state)
print(output_state["messages"][-1].content)