Documentation
¶
Index ¶
- Constants
- type Config
- type Tool
- func (t *Tool) BackfillInput(_ context.Context, input map[string]any) map[string]any
- func (t *Tool) Call(ctx context.Context, input tool.CallInput, permissionCheck types.CanUseToolFn) (tool.CallResult, error)
- func (t *Tool) CheckPermissions(_ context.Context, input map[string]any, _ tool.ToolUseContext) types.PermissionResult
- func (t *Tool) Definition() tool.Definition
- func (t *Tool) Description(_ context.Context) (string, error)
- func (t *Tool) FormatResult(data any) string
- func (t *Tool) IsConcurrencySafe(_ map[string]any) bool
- func (t *Tool) IsEnabled() bool
- func (t *Tool) IsReadOnly(_ map[string]any) bool
- func (t *Tool) ValidateInput(_ context.Context, input map[string]any) (map[string]any, error)
Constants ¶
View Source
const ( ToolName = "read_document_url" DisplayName = "Read Document URL" SearchHint = "fetch and convert a remote document or web page to markdown" Description = "Fetch a document at a URL and convert it to readable markdown. " + "Supports PDF, DOCX, PPTX, XLSX, HTML pages, and arXiv papers. " + "Requires docling-serve to be configured. " + "Optionally saves the extracted markdown to a workspace path." )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// DoclingURL is the base URL of a running docling-serve instance.
// When empty the tool registers but always returns a "not configured" message.
DoclingURL string
}
Config holds the configuration for the read_document_url tool.
type Tool ¶
type Tool struct {
// contains filtered or unexported fields
}
Tool fetches a remote document and converts it to markdown via docling-serve.
func (*Tool) BackfillInput ¶
func (*Tool) Call ¶
func (t *Tool) Call( ctx context.Context, input tool.CallInput, permissionCheck types.CanUseToolFn, ) (tool.CallResult, error)
func (*Tool) CheckPermissions ¶
func (t *Tool) CheckPermissions(_ context.Context, input map[string]any, _ tool.ToolUseContext) types.PermissionResult
func (*Tool) Definition ¶
func (t *Tool) Definition() tool.Definition
func (*Tool) FormatResult ¶
Click to show internal directories.
Click to hide internal directories.