Skip to content

[DOCS] Rust ADK agent LLM settings: temperature removed, timeout/max_tokens/iterations now live #808

Closed

Description

Summary

The Rust ADK's agent LLM configuration surface changed in inference-gateway/rust-adk#168 (fixes rust-adk issue #159). Five settings used to be accepted but ignored; four are now live and one is removed, so any docs page that lists the A2A_AGENT_CLIENT_* env vars or AgentConfig fields for the Rust ADK needs an update.

User-facing change:

  • A2A_AGENT_CLIENT_API_KEY is now sent to the gateway as a bearer token.
  • A2A_AGENT_CLIENT_MAX_TOKENS now takes effect on non-streaming chat completions (the gateway SDK omits max_tokens from streaming requests).
  • A2A_AGENT_CLIENT_TIMEOUT_SECS now bounds each LLM request, and the wait for each streamed event; 0 disables the bound.
  • A2A_AGENT_CLIENT_MAX_CHAT_COMPLETION_ITERATIONS now drives the agent tool loop cap. AgentBuilder::with_max_chat_completion is an alias for with_max_chat_completion_iterations.
  • A2A_AGENT_CLIENT_TEMPERATURE, AgentConfig::temperature and AgentBuilder::with_temperature are REMOVED (breaking): the Rust gateway SDK exposes no temperature knob, tracked in [FEATURE] Expose temperature (and a request timeout) on InferenceGatewayClient rust-sdk#166.

Affected pages: any Rust ADK / A2A ADK configuration reference listing the A2A_AGENT_CLIENT_* variables or AgentConfig example code.

Acceptance Criteria

  • Temperature is dropped from the Rust ADK config/env reference
  • TIMEOUT_SECS, MAX_TOKENS (non-streaming caveat) and MAX_CHAT_COMPLETION_ITERATIONS are documented as effective
  • The removal is noted as a breaking change for the release that ships it

Activity

  1. added
    documentation
    on Sep 26, 2026
  2. moved this to Todo in 2026on Sep 26, 2026
  3. edenreich commented on Sep 26, 2026

    @edenreich
    Contributor

    @claude Can you document this?

  4. added theissue type on Sep 26, 2026
  5. inference-gateway-maintainer commented on Sep 26, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 8m 18s —— View job • docs/issue-808-20260926-0049


    Documented the Rust ADK agent LLM settings change

    • Gather context (issue body, repo CLAUDE.md)
    • Find all Rust ADK pages listing A2A_AGENT_CLIENT_* / AgentConfig - only rust-adk.md carries them; adk.md and typescript-adk.md reference the Go/TS AgentConfig, which is unaffected
    • Drop temperature from the env reference and the AgentBuilder method table
    • Document TIMEOUT_SECS, MAX_TOKENS (non-streaming caveat) and MAX_CHAT_COMPLETION_ITERATIONS as effective
    • Note A2A_AGENT_CLIENT_API_KEY is sent as a bearer token
    • Note the removal as a breaking change
    • Validate: bun run lint:md, bun run format:check, bun run build all pass
    • Commit and open PR

    Changes in rust-adk.md

    Setting Update
    A2A_AGENT_CLIENT_TEMPERATURE / with_temperature Removed from both tables; a short pointer under the env table sends readers to the breaking-change note
    TIMEOUT_SECS / with_timeout Now described as bounding each LLM request and each wait for a streamed event, with 0 / Duration::ZERO disabling the bound
    MAX_TOKENS / with_max_tokens Non-streaming caveat spelled out (the gateway SDK omits max_tokens from streaming requests)
    MAX_CHAT_COMPLETION_ITERATIONS Described as the agent tool-loop cap; with_max_chat_completion noted as an alias
    API_KEY Noted as sent to the gateway as a bearer token

    A new Temperature removed subsection under AgentBuilder records the removal as breaking and warns that the four formerly inert settings now take effect, so an agent carrying unused values for them will change behaviour on upgrade.

    One judgement call worth your eye: the upstream change is still unmerged, so I wrote the version as "first release after 0.12.1" (latest rust-adk release) rather than invent a number. Swap in the real version once it is cut.

    Per this repo's conventions I did not link the upstream PR or the rust-sdk tracking issue in the page content.

    Create a PR - already opened as #809.
    | Branch

  6. inference-gateway-releaser commented on Sep 26, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.17 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions