Skip to content

Commit

Permalink
Merge pull request #34 from imclerran/update-docs
Browse files Browse the repository at this point in the history
Improve docs for buildTool
  • Loading branch information
imclerran authored Dec 28, 2024
2 parents 4a72327 + eda38e3 commit 72def00
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions package/Tools.roc
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,19 @@ updateMessagesFromResponse = \messages, responseRes ->
# Err (HttpErr _) -> messages

## Build a tool object with the given name, description, and parameters.
## ```
## buildTool = \name, description, parameters -> ...
## ```
## Parameters:
## - `name : Str` : The name of the tool.
## - `description : Str` : The description of the tool.
## - `parameters : List { ... }` : The parameters for the tool.
## - `name : Str` : The name of the parameter.
## - `type : Str` : The type of the parameter.
## - `description : Str` : The description of the parameter.
## - `required : Bool` : Whether the parameter is required.
##
## Returns:
## - `Tool` : The tool object.
buildTool : Str, Str, List { name : Str, type : Str, description : Str, required : Bool } -> Tool
buildTool = InternalTools.buildTool

0 comments on commit 72def00

Please sign in to comment.