Generate Text With Search Tool
POST
https://genai.reseter.space/api/v2/ai-gen-with-search
Request
Body Params application/json
prompt
string
required
model
string
required
contextId
string
optional
Example
{
"prompt": "Find information on the internet about the great leader Ho Chi Minh?",
"model": "null-pro",
"contextId": "ndqthgZIKsHW7TUkAYHT"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://genai.reseter.space/api/v2/ai-gen-with-search' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "Find information on the internet about the great leader Ho Chi Minh?",
"model": "null-pro",
"contextId": "ndqthgZIKsHW7TUkAYHT"
}'
Responses
🟢200Success
application/json
Body
success
boolean
required
message
string
required
text
string
required
searchLogs
string
required
timestamp
string
required
contextId
string
required
error
null
required
Example
{
"success": true,
"message": "Success",
"text": "Ho Chi Minh (1890-1969) was a Vietnamese revolutionary leader, the founder of the Vietnamese Communist Party, and served as the first President of North Vietnam. He was a central figure in Vietnam's fight for independence from French colonial rule and later against the United States during the Vietnam War. He adopted the name Ho Chi Minh, meaning \"He Who Enlightens,\" around 1940. He is a highly revered figure in Vietnam, and the city of Saigon was renamed Ho Chi Minh City in his honor.",
"searchLogs":"\n\n[1m> Entering new AgentExecutor chain...[0m\n[32;1m[1;3mAction: Search\nAction Input: \"Ho Chi Minh\"[0m\nObservation: [36;1m[1;3msnippet: Learn about Ho Chi Minh, the founder of the Vietnamese Communist Party and the president of North Vietnam. Explore his early life, his role in the anti-colonial movement, and his legacy in Vietnam and the world., title: Ho Chi Minh | Biography, Presidency, & Facts | Britannica, link: https://www.britannica.com/biography/Ho-Chi-Minh, snippet: Ho Chi Minh - Vietnam War, Independence, Revolution: In 1938 Ho returned to China and stayed for a few months with Mao Zedong at Yen-an. When France was defeated by Germany in 1940, Ho and his lieutenants, Vo Nguyen Giap and Pham Van Dong, plotted to use this turn of events to advance their own cause. About this time he began to use the name Ho Chi Minh (\"He Who Enlightens\")., title: Ho Chi Minh - Vietnam War, Independence, Revolution | Britannica, link: https://www.britannica.com/biography/Ho-Chi-Minh/World-War-II-and-the-founding-of-the-Vietnamese-state, snippet: You haven't experienced Ho Chi Minh City until you've tried the street food. Samuel Brown/Getty Images 4. Savor snails (and more) in District 4. A district once known for thugs and gangsters, District 4 has transformed into a playground for street food in general, and for snails in particular. Vinh Khanh Street is a top spot for seafood, with ..., title: 10 best things to do in Ho Chi Minh City - Lonely Planet, link: https://www.lonelyplanet.com/articles/best-things-to-do-in-ho-chi-minh-city, snippet: Discover the best attractions and activities in Ho Chi Minh City, the vibrant \"Pearl of the Far East\". Explore historical landmarks, cultural sites, nightlife, food, and more in this comprehensive travel guide., title: Top 10 Things To Do in Ho Chi Minh City for An Unforgettable Trip, link: https://www.vietnamairlines.com/us/en/useful-information/travel-guide/things-to-do-in-hcm[0m\nThought:[32;1m[1;3mHo Chi Minh (1890-1969) was a Vietnamese revolutionary leader and statesman. He was a key figure in the foundation of the Democratic Republic of Vietnam (North Vietnam) in 1945, serving as its Prime Minister (1945–1955) and President (1945–1969).\n\nKey aspects of his life and legacy include:\n* **Founder of the Vietnamese Communist Party:** He played a central role in establishing the Indochinese Communist Party in 1930 and later the Viet Minh, a nationalist independence coalition.\n* **Anti-colonial Movement:** Ho Chi Minh was a pivotal leader in Vietnam's struggle for independence from French colonial rule and later against American intervention during the Vietnam War.\n* **\"He Who Enlightens\":** He adopted the name Ho Chi Minh, meaning \"He Who Enlightens,\" around 1940.\n* **Legacy:** He is a highly revered figure in Vietnam, often referred to as \"Uncle Ho.\" His image and ideas remain influential in the country. Saigon, the former capital of South Vietnam, was renamed Ho Chi Minh City in his honor after the reunification of Vietnam.\n\nHe was involved in significant historical events, including plotting with his lieutenants Vo Nguyen Giap and Pham Van Dong to advance their cause for independence when France was defeated by Germany in 1940. He also spent time with Mao Zedong in China in 1938.\n\nFinal Answer: Ho Chi Minh (1890-1969) was a Vietnamese revolutionary leader, the founder of the Vietnamese Communist Party, and served as the first President of North Vietnam. He was a central figure in Vietnam's fight for independence from French colonial rule and later against the United States during the Vietnam War. He adopted the name Ho Chi Minh, meaning \"He Who Enlightens,\" around 1940. He is a highly revered figure in Vietnam, and the city of Saigon was renamed Ho Chi Minh City in his honor.[0m\n\n[1m> Finished chain.[0m\n",
"timestamp": "2025-05-10 02:08:10",
"contextId": "n8qthgZIKsHW7TUkAYHT",
"error": null
}
Modified at 2025-05-09 19:12:35