Skip to content

Assumption of Sampling and session might be wrong? #119

Description

@vromero

Hi all,

@tzolov points here the following:

Key point: according to the spec, you can only use listRoots or createMessages within an existing client session. This means these client features are only accessible from within tool/prompt/resource handlers using the new exchange argument.

I have read and re-read the spec but I'm unable to find any mention to that at all.

Even the diagram doesn't seem to sustain that hypothesis:

sequenceDiagram
participant Server
participant Client
participant User
participant LLM
Note over Server,Client: Server initiates sampling
Server->>Client: sampling/createMessage
Note over Client,User: Human-in-the-loop review
Client->>User: Present request for approval
User-->>Client: Review and approve/modify
Note over Client,LLM: Model interaction
Client->>LLM: Forward approved request
LLM-->>Client: Return generation
Note over Client,User: Response review
Client->>User: Present response for approval
User-->>Client: Review and approve/modify
Note over Server,Client: Complete request
Client-->>Server: Return approved response
Loading

Would it be possible to discuss the exact point of the spec that refers to this? I'm unable to find it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionThe issue is a question and not a reportwaiting for userWaiting for user feedback or more details

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions