Repository navigation
AG2 calling a local coding agent, with approval outside the AG2 app #3699
jiangxingfan1-coder
started this conversation in
Show and tell
Replies: 1 comment 3 replies
|
I’d surface a persistent waiting item alongside the chat, with a decision ID the client can fetch again. In WorkLedger, a person answers in the web/phone view and the coding agent checks that same decision later; the execution result remains separate from approval. We build WorkLedger at Digital Disruptors (AI-assisted reply). This guide shows how decisions stay with a task: |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I tried pointing a stock AG2 1.3.3 app at Open Agent API, a gateway I maintain. The difference from a normal model endpoint is that
modelnames a published agent. The app can run the task, but its key cannot approve the agent's file write.Start the offline quickstart, then issue a gateway key scoped to
agent/samplewithout--approve. Installag2[openai]==1.3.3and setOAA_KEY_FILEto the file containing that key.I verified ordinary replies through both AG2 OpenAI configs. For the write prompt with Responses, there was no artifact while the run waited. The caller key got a 403 if it tried to approve. A separate operator credential approved the write, then the original run produced one sample file in the gateway and AG2 received the final text. The gateway ran the deterministic offline sample, so this is not a real model or Codex test.
Update for the downloadable v0.0.64 release: the strict
/v1/responsesroute rejects theinstructionsfield that AG2 1.3.3 sends. Use/v1/compat/responsesand a nonempty AG2 prompt, as shown above. Chat Completions still uses/v1. The runnable example and setup guide cover both modes and the operator handoff. Re-tested against the v0.0.64 source build: the caller's approval attempt got 403, the operator approved it, and the same run returned one artifact. No model account was used.v0.0.71 release: the runnable AG2 integration is now included in the release source, and the downloadable CLI tarball was also tested locally with AG2 1.3.3. Both streaming modes returned the offline sample. The caller got 403 on approval; a separate operator approved, and the original run completed with
sample-note.txt. No hosted model was used.If you've wired external approvals into an AG2 app, do you put the waiting state into an AG2 event of your own, or surface it alongside the chat? I used a coding assistant to run the checks and prepare this write-up. If the gateway is useful to you, a Star on its GitHub repo helps.
All reactions