[Grid agent] Implement the generic OpenAI-compatible LLM transport and tool loop #119
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Objective
Implement one provider-neutral, pure-Rust HTTP client for an exact operator-supplied OpenAI-compatible endpoint and a bounded reasoning/tool-call loop that works with inexpensive or self-hosted models.
Endpoint contract
endpoint_urlplusapi_key; post to the exact URL rather than appending provider paths. Send the key as bearer authorization and never log it.Tool loop and resilience
Retry-After; never retry an ambiguous mutating tool execution.Acceptance criteria
Dependencies and exclusions
Depends on the architecture/configuration issue. Policy decisions and actual world tools belong to their dedicated issues; this issue provides the generic execution loop and test transport.
Implemented in commit
a46bc42.Implementation:
Issue-scoped verification:
No credentials or .env content were read or committed; all endpoint tests use bounded loopback fakes.