StopEvent always retunrs a string #131

Closed
opened 2026-02-16 01:15:55 -05:00 by yindo · 1 comment
Owner

Originally created by @jdelacasa on GitHub (Nov 7, 2024).

My workflow running in a container:

.
.
return StopEvent(result={"response": response.response})

Querying the controlplane from another container:

client = httpx.AsyncClient()
apiserver_url = "http://dev-ng-controlplane:4501"

payload = { "input": json.dumps(request_input),
"agent_id" : service_name
}

response = await client.post(f"{apiserver_url}/deployments/{deployment_name}/tasks/run",
json=payload,
timeout=30)

print (type(response))
data = response.json()
print (type(data))

===== output

<class 'httpx.Response'>
<class 'str'>

Originally created by @jdelacasa on GitHub (Nov 7, 2024). My workflow running in a container: . . return StopEvent(result={"response": response.response}) Querying the controlplane from another container: client = httpx.AsyncClient() apiserver_url = "http://dev-ng-controlplane:4501" payload = { "input": json.dumps(request_input), "agent_id" : service_name } response = await client.post(f"{apiserver_url}/deployments/{deployment_name}/tasks/run", json=payload, timeout=30) print (type(response)) data = response.json() print (type(data)) ===== output <class 'httpx.Response'> <class 'str'>
yindo closed this issue 2026-02-16 01:15:55 -05:00
Author
Owner

@logan-markewich commented on GitHub (Nov 7, 2024):

@jdelacasa correct -- it has to be serializeable, hence it gets thrown into json.dumps

You have to load it from there

@logan-markewich commented on GitHub (Nov 7, 2024): @jdelacasa correct -- it has to be serializeable, hence it gets thrown into json.dumps You have to load it from there
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/llama_deploy#131