mirror of
https://github.com/run-llama/llama_deploy.git
synced 2026-07-16 02:42:53 -04:00
StopEvent always retunrs a string #131
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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'>
@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