Back to AI Q&A
Want to keep multiple rounds of Hermes Agent API? Use Responses

Want to keep multiple rounds of Hermes Agent API? Use Responses

AI Q&A Admin 92 views

Hermes Agent API If you just want to "protect multiple rounds on the server side", the official guide is not Chat Completions, but /v1/responses. The documentation states that it allows the server to rebuild the full context in either previous_response_id or conversation, and even previous tool calls and results will be preserved.

Two uses

  • previous_response_id: It is suitable for asking one question after another, and it is explicitly strung together.
  • conversation: It is suitable to give a fixed name to a conversation, and then connect it to the same conversation chain.

When to change the interface

If you want the front-end to let Hermes Agent continuously do project analysis, read files, and continue to ask questions, especially when it comes to the continuation of tool results, using the Responses API will be more stable than manually spelling messages in each round.

In a word: if you want to keep multiple rounds and tool context, don't insist on Chat Completions, just use Hermes Agent's Responses API.

Official open source address: https://github.com/NousResearch/hermes-agent; Official document entry: https://hermes-agent.nousresearch.com/.

Recommended Tools

More