tool

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractInt64

func ExtractInt64(args map[string]any, key string) (int64, error)

ExtractInt64 extracts an int64 value from a tool's args map, accepting int, int64, or float64. gollem decodes JSON numbers as float64, so this helper normalises the lookup across providers that may return int / int64 directly.

Returns an error when the key is missing, nil, or the value is not a number.

func Update

func Update(ctx context.Context, message string)

Update calls the UpdateFunc stored in ctx with the given message. If no UpdateFunc is present in ctx, the call is a no-op.

func WithUpdate

func WithUpdate(ctx context.Context, fn UpdateFunc) context.Context

WithUpdate returns a new context that carries the given UpdateFunc.

Types

type UpdateFunc

type UpdateFunc func(ctx context.Context, message string)

UpdateFunc is a function that posts a progress message during tool execution. Tools call this to report what they are doing to the user in real time.

Directories

Path Synopsis
Package actionwriter exposes the action-mutation gollem tools available to event-driven Agent Jobs.
Package actionwriter exposes the action-mutation gollem tools available to event-driven Agent Jobs.
Package casemulti exposes a cross-case ("workspace-scoped") gollem tool set for agent turns that operate across many Cases in one workspace, rather than a single Case pinned at construction time (contrast pkg/agent/tool/casewriter and pkg/agent/tool/core, both of which are built with one fixed CaseID and never take a case identifier at call time).
Package casemulti exposes a cross-case ("workspace-scoped") gollem tool set for agent turns that operate across many Cases in one workspace, rather than a single Case pinned at construction time (contrast pkg/agent/tool/casewriter and pkg/agent/tool/core, both of which are built with one fixed CaseID and never take a case identifier at call time).
Package casewriter exposes the case-mutation gollem tools available to event-driven Agent Jobs and the case-bound mention agent.
Package casewriter exposes the case-mutation gollem tools available to event-driven Agent Jobs and the case-bound mention agent.
Package core contains gollem tools that operate on the case's domain state — currently actions.
Package core contains gollem tools that operate on the case's domain state — currently actions.
Package github provides a GitHub App-authenticated client and a set of gollem agent tools (search, get_issue, get_pull_request, get_file, list_commits) that the AI agent can call against GitHub.
Package github provides a GitHub App-authenticated client and a set of gollem agent tools (search, get_issue, get_pull_request, get_file, list_commits) that the AI agent can call against GitHub.
Package jira adapts a gollem.ToolSet (e.g.
Package jira adapts a gollem.ToolSet (e.g.
Package knowledge exposes the workspace-wide shared-knowledge gollem tools available to agents.
Package knowledge exposes the workspace-wide shared-knowledge gollem tools available to agents.
Package memo exposes the Case-scoped memo gollem tools available to agents running in a Case context.
Package memo exposes the Case-scoped memo gollem tools available to agents running in a Case context.
Package notiontool contains gollem tools that let the AI agent search Notion pages/databases and retrieve their content as Markdown via the Notion Markdown Content API (Notion-Version 2026-03-11).
Package notiontool contains gollem tools that let the AI agent search Notion pages/databases and retrieve their content as Markdown via the Notion Markdown Content API (Notion-Version 2026-03-11).
Package slacktool contains gollem tools that let the AI agent interact with Slack: workspace-wide message search, bulk message fetch, and posting to a case channel.
Package slacktool contains gollem tools that let the AI agent interact with Slack: workspace-wide message search, bulk message fetch, and posting to a case channel.
Package slackpost exposes the Slack-posting gollem tool available to event-driven Agent Jobs.
Package slackpost exposes the Slack-posting gollem tool available to event-driven Agent Jobs.
Package wsmeta exposes read-only tools that report on the WorkspaceRegistry — the registered workspaces, their custom field schemas, and their configured external sources.
Package wsmeta exposes read-only tools that report on the WorkspaceRegistry — the registered workspaces, their custom field schemas, and their configured external sources.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL