Documentation
¶
Index ¶
- Constants
- type Service
- func (s *Service) GetToolCall(ctx context.Context, req *connect.Request[tool_executionv1.GetToolCallRequest]) (*connect.Response[tool_executionv1.ToolCall], error)
- func (s *Service) NewServiceHandler(opts ...connect.HandlerOption) (string, http.Handler)
- func (s *Service) SubmitToolResult(ctx context.Context, ...) (*connect.Response[tool_executionv1.SubmitToolResultResponse], error)
Constants ¶
View Source
const ResourceType = "tool-call"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
tool_executionv1alpha1connect.UnimplementedToolExecutionServiceHandler
// contains filtered or unexported fields
}
Service implements the ToolExecutionService
func New ¶
func New(log *logger.Logger, jobQueue *job_queue.Client, nc *nats.Conn, m *metrics.Metrics, analyticsClient *analytics.Client) (*Service, error)
New creates a new tool execution service
func (*Service) GetToolCall ¶
func (s *Service) GetToolCall( ctx context.Context, req *connect.Request[tool_executionv1.GetToolCallRequest], ) (*connect.Response[tool_executionv1.ToolCall], error)
GetToolCall retrieves a tool call by its ID
func (*Service) NewServiceHandler ¶
NewServiceHandler returns a connect service path and handler
func (*Service) SubmitToolResult ¶
func (s *Service) SubmitToolResult( ctx context.Context, req *connect.Request[tool_executionv1.SubmitToolResultRequest], ) (*connect.Response[tool_executionv1.SubmitToolResultResponse], error)
SubmitToolResult submits a tool execution result
Click to show internal directories.
Click to hide internal directories.