A few other API that look to be missing from the O...
# proj-sdk
f
A few other API that look to be missing from the OpenHands agent server that the frontend needs: 1.
getRuntimeId
(
/config
): Used to fetch and log the runtime container ID 2.
getTrajectory
(
/trajectory
): Used to export conversation trajectory/history 3.
getMicroagents
(
/microagents
): Used to fetch available microagents for the conversation 4.
getMicroagentPrompt
(
/remember-prompt
): Used to get the prompt for creating/remembering microagents from events 5.
getFiles
(
/list-files
): Used to list files in the microagent directory 6.
uploadFiles
(
/upload-files
): Used to upload files to workspace cc @straight-sundown-84319 maybe we already have the equivalent under a different path or moved outside the agent server entirely? I feel like
/config
would be one that would be moved to the app server but isn't clear which. @wooden-umbrella-84098 We mentioned ignoring microagent-related stuff for now, should that include points 3 and 4?
w
where are we using /upload-files?
f
When the user attaches file / images via the chat input
w
ahh right
f
image.png
w
images I think go to the LLM, other files get uploaded
nod 1
I could imagine disabling a few of these things to get v1 out: • download trajectory • get microagents • remember • getRuntimeID These we probably need: • uploadFiles • getFiles (?)
if we have upload-file for a single file (I kinda remember that) maybe we use that with a for loop
people aren't uploading hoards of files
f
Yes my fallback was to call multiple upload files in parallel
👍 1
w
reasonable to disable the things above in v1 conversations? i.e. just remove those buttons from the UI for now
👍 1
s
We have an upload file and download file function in the agent server
We also have functions for executing bash commands that could be used for list files, though an explicit function for this probably makes sense too
Same for trajectory - it is basically just a zip and download
I think this touches on the question we already had with git commands - to what degree should we roll these commands into the agent sdk
I'll post examples later today of how to execute these functions ...
w
Download trajectory seems worth supporting directly
Ditto for list files
s
Feels like a similar category to git commands to me
w
What do you mean?
s
Low level functions we can build easily using our existing bash command and download / upload - but it may be more dev friendly to supply these functions
(And make them an explicit part of the agent server API)
w
Yeah exactly
I’d make them explicitly a part of the sdk
nod 1
And have corresponding server endpoints