Skip to content

Render web/fetch and web/search for the model of a section #7

In review

Description

@sharmis-tp

runvil/web describes its tools the same way to every model, and web/fetch uses one default max_chars for all of them. A linked Pack can change descriptions per model through Pack::render, but a library Plugin can't yet, because contract 0.6 has no render verb. That verb is cppalliance/runvil-plugin-api#2.

Once the contract and the SDK have it, runvil/web should implement Pack::render:

  • A render keeps each tool's name and parameters the same for every model. It adds no model-only tools.
  • With a small context window, shorten the web/fetch and web/search descriptions. With a large window, leave them as they are.
  • Once each RV_TOOL_CALL names the model of its round (agreed in api#2), web/fetch takes its default max_chars from that model's context when the call does not give one, so the result fits even when a section changes model mid-run.
  • Tests use the SDK's testing render call, with one small-context and one large-context model.

Blocked on cppalliance/runvil-plugin-api#2.

Activity

  1. vinniefalco commented on Nov 26, 2026

    @vinniefalco
    Member

    runvil/web does not need to be model-only, because the name and parameters of the tool are the same regardless of the model (or, they should be the same).

  2. sharmis-tp commented on Nov 26, 2026

    @sharmis-tp
    CollaboratorAuthor

    Agreed. runvil/web adds no model-only tools, and a render keeps each tool's name and parameters as they are. It changes only the description text. The smaller default for max_chars is applied when the call arrives, from the model the call names, so the schema stays the same for every model. I updated the issue to match.

  3. sharmis-tp commented on Nov 27, 2026

    @sharmis-tp
    CollaboratorAuthor

    Now that contract 0.7 is pinned (#9), I'd like to take this. One correction to my last comment: the contract left RV_TOOL_CALL as it was, so a call doesn't know which model sent it, and web/fetch can't pick a default max_chars for each model. I'll limit this to the render: with a small context window, shorter descriptions for web/fetch and web/search, and the same names and parameters for every model. Tests will use the SDK's testing render.

  4. vinniefalco commented on Nov 28, 2026

    @vinniefalco
    Member

    Sounds good, and I will add the model and context information in the next contract pin. Please open a new issue for it, and assign me to it.

  5. sharmis-tp commented on Dec 1, 2026

    @sharmis-tp
    CollaboratorAuthor

    Thanks! Opened #11 and assigned it to you.

    I checked the current descriptions, and web/fetch and web/search are already one short sentence each. Shortening them would save almost nothing, so I suggest leaving out the render and keeping #7 for the max_chars default only. Once the new contract is pinned, web/fetch will choose that default from the calling model's context when the call doesn't set max_chars. Does that work for you?

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions