Earlier quoted context omitted.
Because the defaults aren't just for convenience, the API designer is also making the parameters they think should be used the most have the least resistance. Good example is runtime parameters like in the JVM. You shouldn't start with having to tune your JVM, you probably want a middle of the road place to start with even if you know you're going to tune it.
im not opposed to good defaults, i just believe they should be explicit. The AI should read the starting.md to fill in explicitly what its JVM configuration is. Then, when you want to tune in the future its clear what options are available and what specifically is changing.
Designing APIs for Agents
51–58 of 58 posts
Re: Designing APIs for Agents
#52Earlier quoted context omitted.
You won’t get grounded results by asking for feedback. The LLM doesn’t know its own internal state so while you may get a plausible and contextually significant answer, it isn’t going to be an accurate one.
Are you talking from experience or from theory? I have a reflections mechanism, which launches right after the session ends (when it’s still in cache, so it’s almost free) and it catches a ton of problems with tool/skill/system design, all the time. Low level stuff can be fixed almost automatically (e.g. agent funbled 10 turns bc tool’s docs were wrong), high level too but human gating is useful. If you try doing it…
It feels like it would be relatively random across the range of plausible results, but it sounds like you are finding otherwise.
Re: Designing APIs for Agents
#53Earlier quoted context omitted.
Are you talking from experience or from theory? I have a reflections mechanism, which launches right after the session ends (when it’s still in cache, so it’s almost free) and it catches a ton of problems with tool/skill/system design, all the time. Low level stuff can be fixed almost automatically (e.g. agent funbled 10 turns bc tool’s docs were wrong), high level too but human gating is useful. If you try doing it…
Theory. I guess my question is: why do you think it works so well. What’s the mechanism behind it? It feels like it would be relatively random across the range of plausible results, but it sounds like you are finding otherwise.
I’m talking about asking an agent at the end of the session how well the session went - what tools it found useful, what it found confusing and whatnot. Agents do gladly complain about doing pointless work or fighting with the harness :)
Re: Designing APIs for Agents
#54Re: default values are bad One of my recent projects has contributable code (via extensions) with a central settings management (json file). What I do is take all the defaults contributed by the extensions (namespaced by extension name) and materialize them to the settings file as the initial values to each setting. When an agent wants to edit the settings, it already knows the entirety of the setting surface area an…
I did that too but not for the sake of the LLM, just for myself. Massively helps discoverability. It also protects from backwards-compat if you ever want to change a default without breaking existing users, knowing that whatever they had before has already been saved into their settings so some setting doesn't randomly change on them.
Re: Designing APIs for Agents
#55Earlier quoted context omitted.
Theory. I guess my question is: why do you think it works so well. What’s the mechanism behind it? It feels like it would be relatively random across the range of plausible results, but it sounds like you are finding otherwise.
Why would it be random? Perhaps we’re talking about two different things? I’m talking about asking an agent at the end of the session how well the session went - what tools it found useful, what it found confusing and whatnot. Agents do gladly complain about doing pointless work or fighting with the harness :)
I’m sure it works great fwiw, also the use of a hot cache is clever.
Re: Designing APIs for Agents
#56Re: Designing APIs for Agents
#57Earlier quoted context omitted.
Yeah i have a similar setup at the harness level - a “devlog” at the end of every session about the experience developing, what could have been better, what was confusing And also files issues for blockers I’ve absolutely caught things and made improvements just from skimming them occasionally - they are particularly useful when you get a PR that makes you scratch your head But I’m definitely not taking full advantag…
Why are you asking an LLM what could have been better or was confusing? It literally has no idea.
I’m not sure why this prompt is different than any other in that regard