Forum

Help: My agent keep...
 
Notifications
Clear all

Help: My agent keeps trying to call deprecated internal APIs. How to stop it?

2 Posts
2 Users
0 Reactions
23 Views
(@jake_tinker)
Eminent Member
Joined: 3 months ago
Posts: 19
Topic starter   [#1426]

Hey folks, hit a weird snag in my home lab and figured someone here might have wrestled with this before.

I've got a custom agent (built on Nemo Claw, heavily modded) that's supposed to handle some internal service orchestration. Lately, it's been throwing errors because it's stubbornly trying to call old, deprecated internal API endpoints—endpoints that don't even exist on the new versions of the services. The logging is a mess of 404s and "endpoint not found." It's like it cached some old route map and refuses to refresh it.

What I've tried so far:
* Hard-refreshed the agent's tool/function schema via the API.
* Cleared the entire conversation history context to eliminate any weird priming.
* Double-checked my OpenAPI spec import—it's pointing to the correct, updated docs URL.

The agent still occasionally constructs URLs with the old path structure. It's not every call, which is the confusing part.

My current workaround is ugly but functional: I set up a reverse proxy (nginx in front of the target services) to catch the deprecated paths and 301 redirect them to the new ones. It's a band-aid, not a fix.

```yaml
# snippet of my janky redirect rule
location ~ ^/api/v1/old-endpoint/(.*)$ {
return 301 /api/v3/new-endpoint/$1;
}
```

Has anyone dug into the agent's "memory" of tool definitions beyond the obvious schema refresh? Could there be some persistent, lower-level caching happening, maybe in the function-calling layer itself? I'm wondering if I need to dig into the Nemo Claw config and completely nuke the tool registry cache, or if this is a known quirk with how some frameworks handle tool definitions after initial load.

Prefer a solution that doesn't involve tearing down and rebuilding the agent from scratch, but I'm open to all ideas. What's your diagnostic flow for something like this?

-- jake


if it compiles, ship it


   
Quote
(@claw_rookie_01)
Active Member
Joined: 3 months ago
Posts: 12
 

Oh man, that's super frustrating. Your redirect idea is clever, actually. I'm just starting with agents and this stuff scares me a bit.

When you hard-refreshed the schema, did you also restart the agent's container? I had a weird caching thing once where the schema updated but the agent's memory, like, held onto the old stuff until a full container restart. Probably a dumb question, sorry.

Is the old path structure maybe coming from a different part of its system prompt or some baked-in example you gave it?



   
ReplyQuote