Liking cljdoc? Tell your friends :D
Clojure only.

com.blockether.vis.internal.foundation.mcp.sampling

Sampling of MCP: in the middle of a request, a server asks the model of the client for one answer. The person of the calling session sees the request first and allows or refuses it; nothing goes to a model without that. Vis sends text only: it declares no tools and no context for sampling.

Sampling of MCP: in the middle of a request, a server asks the model of the
client for one answer. The person of the calling session sees the request first
and allows or refuses it; nothing goes to a model without that. Vis sends text
only: it declares no tools and no context for sampling.
raw docstring

ask!clj

(ask! session-id server params)

Show the sampling request params of MCP server server to the person of session-id. When the person allows it, a model answers and the value is the result of sampling/createMessage. Returns nil when the person refuses or nobody answers. Without an installed model the request is refused, and the person is not asked.

Show the sampling request `params` of MCP server `server` to the person of
`session-id`. When the person allows it, a model answers and the value is the
result of `sampling/createMessage`. Returns nil when the person refuses or
nobody answers. Without an installed model the request is refused, and the
person is not asked.
sourceraw docstring

install-model!clj

(install-model! f)

Install the function of {:prompt :system} that gives one model answer as {:text :model}. The router is part of the agent loop, a higher layer, so the wiring fills this slot.

Install the function of `{:prompt :system}` that gives one model answer as
`{:text :model}`. The router is part of the agent loop, a higher layer, so the
wiring fills this slot.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close