Agent Flow
Invoke the ReAct agent flow with a question
.
- curl
- Python
curl http://localhost:8088/api/v1/agent \
--header "content-type: application/json" \
--data \
'{
"question": "What is the meaning of life?"
}'
Install the TrustGraph
SDK:
pip install trustgraph-cli
import trustgraph.api as tg
client = tg.Api()
response = client.agent("What is the meaning of life?")
print(response)