Missing v1 features for web: - auto-titling - web ...
# proj-sdk
w
Missing v1 features for web: • auto-titling • web hosts • git changes API • logging of incoming websocket messages in AgentServer • DELETE endpoint
CC @straight-sundown-84319 @freezing-spoon-14104
m
It seems that we also need to update the Delete Conversation API to support V1 conversations.
nod 1
w
added!
thankyou 1
f
Could we also confirm how we want to handle conversation starting / polling? https://www.notion.so/Starting-a-conversation-V0-vs-V1-28b7be798a17804f82a5f96f198861b2?source=copy_link
w
I would like to switch to V1(alternative) for the purposes of having clearer links, but let's call it a stretch goal
c
Re: auto-title We have ported generate title: https://github.com/All-Hands-AI/agent-sdk/blob/b713c50d1b0d03eacdf78af43abbb3a91a3a0e46/openhands/agent_server/conversation_router.py#L260 I'm not sure about the "auto" part. Is that an agent-server thing missing or an app-server thing? It used to be a PATCH in V0 iirc
w
nice thanks for the tip!
I think maybe we could add an
auto_title=True
to the Conversation class, which automatically does this
and maybe default it to True
f
What about the new confirmation policy API? I see two new endpoints:
POST /api/conversations/{conversation_id}/confirmation_policy
Sets the confirmation policy for a specific conversation
Copy code
{
  "policy": {
    "kind": "AlwaysConfirm" | "NeverConfirm" | "ConfirmRisky",
    // Additional fields for ConfirmRisky:
    "threshold": "LOW" | "MEDIUM" | "HIGH",
    "confirm_unknown": true | false
  }
}
POST /api/conversations/{conversation_id}/events/respond_to_confirmation
Accepts or rejects pending actions when the agent is waiting for confirmation
Copy code
{
  "accept": true | false,
  "reason": "Optional reason for rejection (defaults to 'User rejected the action.')"
}
Though I'm a little confused on how this'll fit in with our existing confirmation mode feature? Will this just be another option under something like a "Default" tag? Will we have to use the same POST API to confirm actions if the user is using other analyzers? Currently we send an event instead of a POST like:
Copy code
{
  "action": "change_agent_state",
  "args": {
    "agent_state": "user_confirmed"
  }
}
w
CC @chilly-france-44439 who might know where to direct this question on the agent team I think you should be able to replace your websocket message with POST /respond_to_confirmation {accept :true}
c
cc @quick-window-91705 who implement the confirmation policy
Will we have to use the same POST API to confirm actions if the user is using other analyzers?
and i believe this is true
m
Hi @quick-window-91705, Could you please respond to Stephan’s question regarding the confirmation policy API? Thank you! thankyou
w
I think I did? I don't really know the answer but I think there's a POST request you can send to confirm
thankyou 1
m
Yes, I’ll give it a try. Thank you! thankyou