mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-26 17:42:24 +02:00
docs: update type annotations (#2739)
This commit is contained in:
@@ -184,7 +184,7 @@
|
||||
"\n",
|
||||
"def travel_advisor(\n",
|
||||
" state: MessagesState,\n",
|
||||
") -> Command[Literal[\"sightseeing_advisor\", \"hotel_advisor\", \"__end__\"]]:\n",
|
||||
") -> Command[Literal[\"sightseeing_advisor\", \"hotel_advisor\", \"human\"]]:\n",
|
||||
" system_prompt = (\n",
|
||||
" \"You are a general travel expert that can recommend travel destinations (e.g. countries, cities, etc). \"\n",
|
||||
" \"If you need specific sightseeing recommendations, ask 'sightseeing_advisor' for help. \"\n",
|
||||
@@ -206,7 +206,7 @@
|
||||
"\n",
|
||||
"def sightseeing_advisor(\n",
|
||||
" state: MessagesState,\n",
|
||||
") -> Command[Literal[\"travel_advisor\", \"hotel_advisor\", \"__end__\"]]:\n",
|
||||
") -> Command[Literal[\"travel_advisor\", \"hotel_advisor\", \"human\"]]:\n",
|
||||
" system_prompt = (\n",
|
||||
" \"You are a travel expert that can provide specific sightseeing recommendations for a given destination. \"\n",
|
||||
" \"If you need general travel help, go to 'travel_advisor' for help. \"\n",
|
||||
@@ -232,7 +232,7 @@
|
||||
"\n",
|
||||
"def hotel_advisor(\n",
|
||||
" state: MessagesState,\n",
|
||||
") -> Command[Literal[\"travel_advisor\", \"sightseeing_advisor\", \"__end__\"]]:\n",
|
||||
") -> Command[Literal[\"travel_advisor\", \"sightseeing_advisor\", \"human\"]]:\n",
|
||||
" system_prompt = (\n",
|
||||
" \"You are a travel expert that can provide hotel recommendations for a given destination. \"\n",
|
||||
" \"If you need general travel help, ask 'travel_advisor' for help. \"\n",
|
||||
|
||||
Reference in New Issue
Block a user