Documentation
¶
Overview ¶
Package pluginsdk is imported by FlatRun plugin binaries to serve their routes over the host-provided socket. See examples/plugins/hello for usage.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AgentCallback ¶
func AgentCallback() (baseURL, token string)
AgentCallback returns the agent API base URL and token a plugin can use to call back into the agent. Either may be empty when the host did not grant callback access.
func Serve ¶
Serve runs the plugin until the host stops it. handler serves the plugin's own routes (nil if the plugin only reports info); tools are advertised to the assistant and dispatched over the tool-exec endpoint. It returns an error if the process was not launched by the host (the socket env var is unset) or the socket cannot be served.
Types ¶
Click to show internal directories.
Click to hide internal directories.