Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 97
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/manugoyal%2Fbraintrust-sdk-a774951c03d7e2a49d4afa8e74454c0eef3a895ccb24d2187bdcd30b37923c66.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/manugoyal%2Fbraintrust-sdk-dd60fe261caab803c127a0f29cadcab5f1956be0a5a265100476b972b4b5b62e.yml
8 changes: 4 additions & 4 deletions lib/braintrust/resources/functions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def retrieve(function_id, opts = {})
#
# @param params [Hash] Attributes to send in this request.
# @option params [String] :description Textual description of the prompt
# @option params [FunctionData] :function_data
# @option params [FunctionData::UnnamedTypeWithunionParent22|FunctionData::UnnamedTypeWithunionParent23|FunctionData::UnnamedTypeWithunionParent24|FunctionData::UnnamedTypeWithunionParent25] :function_data
# @option params [String] :name Name of the prompt
# @option params [Braintrust::Models::PromptData] :prompt_data The prompt, model, and its parameters
# @option params [Array<String>] :tags A list of tags for the prompt
Expand Down Expand Up @@ -134,9 +134,9 @@ def delete(function_id, opts = {})
#
# @param params [Hash] Attributes to send in this request.
# @option params [Object] :input Argument to the function, which can be any JSON serializable value
# @option params [Array<Message::UnnamedTypeWithunionParent22|Message::UnnamedTypeWithunionParent23|Message::UnnamedTypeWithunionParent24|Message::UnnamedTypeWithunionParent25|Message::UnnamedTypeWithunionParent26|Message::UnnamedTypeWithunionParent27>] :messages If the function is an LLM, additional messages to pass along to it
# @option params [Array<Message::UnnamedTypeWithunionParent26|Message::UnnamedTypeWithunionParent27|Message::UnnamedTypeWithunionParent28|Message::UnnamedTypeWithunionParent29|Message::UnnamedTypeWithunionParent30|Message::UnnamedTypeWithunionParent31>] :messages If the function is an LLM, additional messages to pass along to it
# @option params [Symbol] :mode The mode format of the returned value (defaults to 'auto')
# @option params [Parent::UnnamedTypeWithunionParent28|String] :parent Options for tracing the function call
# @option params [Parent::UnnamedTypeWithunionParent32|String] :parent Options for tracing the function call
# @option params [Boolean] :stream Whether to stream the response. If true, results will be returned in the
# Braintrust SSE format.
# @option params [String] :version The version of the function
Expand All @@ -158,7 +158,7 @@ def invoke(function_id, params = {}, opts = {})
# function with the provided fields
#
# @param params [Hash] Attributes to send in this request.
# @option params [FunctionData::UnnamedTypeWithunionParent29|FunctionData::UnnamedTypeWithunionParent30|FunctionData::UnnamedTypeWithunionParent31] :function_data
# @option params [FunctionData::UnnamedTypeWithunionParent33|FunctionData::UnnamedTypeWithunionParent34|FunctionData::UnnamedTypeWithunionParent35] :function_data
# @option params [String] :name Name of the prompt
# @option params [String] :project_id Unique identifier for the project that the prompt belongs under
# @option params [String] :slug Unique identifier for the prompt
Expand Down