Skip to content

Commit

Permalink
Support strict mode for tools (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristine Guadelupe authored Sep 6, 2024
1 parent 3820a22 commit 5b392d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/function.ex
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ defmodule LangChain.Function do
field :description, :string
# Optional text the UI can display for when the function is executed.
field :display_text, :string
# Optional flag to indicate if the function should be executed in strict mode.
# Defaults to `false`.
field :strict, :boolean, default: false
# flag if the function should be auto-evaluated. Defaults to `false`
# requiring an explicit step to perform the evaluation.
# field :auto_evaluate, :boolean, default: false
Expand All @@ -146,6 +149,7 @@ defmodule LangChain.Function do
:name,
:description,
:display_text,
:strict,
:parameters_schema,
:parameters,
:function,
Expand Down

0 comments on commit 5b392d5

Please sign in to comment.