You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: reference.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ client.prompts.log(
56
56
messages=[{"role": "user", "content": "What really happened at Roswell?"}],
57
57
inputs={"person": "Trump"},
58
58
created_at=datetime.datetime.fromisoformat(
59
-
"2024-07-19 00:29:35.178000+00:00",
59
+
"2024-07-18 23:29:35.178000+00:00",
60
60
),
61
61
provider_latency=6.5931549072265625,
62
62
output_message={
@@ -193,7 +193,7 @@ client.prompts.log(
193
193
Controls how the model uses tools. The following options are supported:
194
194
-`'none'` means the model will not call any tool and instead generates a message; this is the default when no tools are provided as part of the Prompt.
195
195
-`'auto'` means the model can decide to call one or more of the provided tools; this is the default when tools are provided as part of the Prompt.
196
-
-`'required'` means the model can decide to call one or more of the provided tools.
196
+
-`'required'` means the model must call one or more of the provided tools.
197
197
-`{'type': 'function', 'function': {name': <TOOL_NAME>}}` forces the model to use the named function.
198
198
199
199
</dd>
@@ -512,7 +512,7 @@ client.prompts.update_log(
512
512
Controls how the model uses tools. The following options are supported:
513
513
-`'none'` means the model will not call any tool and instead generates a message; this is the default when no tools are provided as part of the Prompt.
514
514
-`'auto'` means the model can decide to call one or more of the provided tools; this is the default when tools are provided as part of the Prompt.
515
-
-`'required'` means the model can decide to call one or more of the provided tools.
515
+
-`'required'` means the model must call one or more of the provided tools.
516
516
-`{'type': 'function', 'function': {name': <TOOL_NAME>}}` forces the model to use the named function.
517
517
518
518
</dd>
@@ -743,7 +743,7 @@ for chunk in response:
743
743
Controls how the model uses tools. The following options are supported:
744
744
-`'none'` means the model will not call any tool and instead generates a message; this is the default when no tools are provided as part of the Prompt.
745
745
-`'auto'` means the model can decide to call one or more of the provided tools; this is the default when tools are provided as part of the Prompt.
746
-
-`'required'` means the model can decide to call one or more of the provided tools.
746
+
-`'required'` means the model must call one or more of the provided tools.
747
747
-`{'type': 'function', 'function': {name': <TOOL_NAME>}}` forces the model to use the named function.
748
748
749
749
</dd>
@@ -1017,7 +1017,7 @@ client.prompts.call(
1017
1017
Controls how the model uses tools. The following options are supported:
1018
1018
-`'none'` means the model will not call any tool and instead generates a message; this is the default when no tools are provided as part of the Prompt.
1019
1019
-`'auto'` means the model can decide to call one or more of the provided tools; this is the default when tools are provided as part of the Prompt.
1020
-
-`'required'` means the model can decide to call one or more of the provided tools.
1020
+
-`'required'` means the model must call one or more of the provided tools.
1021
1021
-`{'type': 'function', 'function': {name': <TOOL_NAME>}}` forces the model to use the named function.
1022
1022
1023
1023
</dd>
@@ -6760,10 +6760,10 @@ client.flows.log(
6760
6760
output="The patient is likely experiencing a myocardial infarction. Immediate medical attention is required.",
Copy file name to clipboardExpand all lines: src/humanloop/prompts/client.py
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -154,7 +154,7 @@ def log(
154
154
Controls how the model uses tools. The following options are supported:
155
155
- `'none'` means the model will not call any tool and instead generates a message; this is the default when no tools are provided as part of the Prompt.
156
156
- `'auto'` means the model can decide to call one or more of the provided tools; this is the default when tools are provided as part of the Prompt.
157
-
- `'required'` means the model can decide to call one or more of the provided tools.
157
+
- `'required'` means the model must call one or more of the provided tools.
158
158
- `{'type': 'function', 'function': {name': <TOOL_NAME>}}` forces the model to use the named function.
messages=[{"role": "user", "content": "What really happened at Roswell?"}],
249
249
inputs={"person": "Trump"},
250
250
created_at=datetime.datetime.fromisoformat(
251
-
"2024-07-19 00:29:35.178000+00:00",
251
+
"2024-07-18 23:29:35.178000+00:00",
252
252
),
253
253
provider_latency=6.5931549072265625,
254
254
output_message={
@@ -411,7 +411,7 @@ def update_log(
411
411
Controls how the model uses tools. The following options are supported:
412
412
- `'none'` means the model will not call any tool and instead generates a message; this is the default when no tools are provided as part of the Prompt.
413
413
- `'auto'` means the model can decide to call one or more of the provided tools; this is the default when tools are provided as part of the Prompt.
414
-
- `'required'` means the model can decide to call one or more of the provided tools.
414
+
- `'required'` means the model must call one or more of the provided tools.
415
415
- `{'type': 'function', 'function': {name': <TOOL_NAME>}}` forces the model to use the named function.
416
416
417
417
output : typing.Optional[str]
@@ -600,7 +600,7 @@ def call_stream(
600
600
Controls how the model uses tools. The following options are supported:
601
601
- `'none'` means the model will not call any tool and instead generates a message; this is the default when no tools are provided as part of the Prompt.
602
602
- `'auto'` means the model can decide to call one or more of the provided tools; this is the default when tools are provided as part of the Prompt.
603
-
- `'required'` means the model can decide to call one or more of the provided tools.
603
+
- `'required'` means the model must call one or more of the provided tools.
604
604
- `{'type': 'function', 'function': {name': <TOOL_NAME>}}` forces the model to use the named function.
Controls how the model uses tools. The following options are supported:
818
818
- `'none'` means the model will not call any tool and instead generates a message; this is the default when no tools are provided as part of the Prompt.
819
819
- `'auto'` means the model can decide to call one or more of the provided tools; this is the default when tools are provided as part of the Prompt.
820
-
- `'required'` means the model can decide to call one or more of the provided tools.
820
+
- `'required'` means the model must call one or more of the provided tools.
821
821
- `{'type': 'function', 'function': {name': <TOOL_NAME>}}` forces the model to use the named function.
Controls how the model uses tools. The following options are supported:
2184
2184
- `'none'` means the model will not call any tool and instead generates a message; this is the default when no tools are provided as part of the Prompt.
2185
2185
- `'auto'` means the model can decide to call one or more of the provided tools; this is the default when tools are provided as part of the Prompt.
2186
-
- `'required'` means the model can decide to call one or more of the provided tools.
2186
+
- `'required'` means the model must call one or more of the provided tools.
2187
2187
- `{'type': 'function', 'function': {name': <TOOL_NAME>}}` forces the model to use the named function.
Controls how the model uses tools. The following options are supported:
2450
2450
- `'none'` means the model will not call any tool and instead generates a message; this is the default when no tools are provided as part of the Prompt.
2451
2451
- `'auto'` means the model can decide to call one or more of the provided tools; this is the default when tools are provided as part of the Prompt.
2452
-
- `'required'` means the model can decide to call one or more of the provided tools.
2452
+
- `'required'` means the model must call one or more of the provided tools.
2453
2453
- `{'type': 'function', 'function': {name': <TOOL_NAME>}}` forces the model to use the named function.
2454
2454
2455
2455
output : typing.Optional[str]
@@ -2646,7 +2646,7 @@ async def call_stream(
2646
2646
Controls how the model uses tools. The following options are supported:
2647
2647
- `'none'` means the model will not call any tool and instead generates a message; this is the default when no tools are provided as part of the Prompt.
2648
2648
- `'auto'` means the model can decide to call one or more of the provided tools; this is the default when tools are provided as part of the Prompt.
2649
-
- `'required'` means the model can decide to call one or more of the provided tools.
2649
+
- `'required'` means the model must call one or more of the provided tools.
2650
2650
- `{'type': 'function', 'function': {name': <TOOL_NAME>}}` forces the model to use the named function.
Controls how the model uses tools. The following options are supported:
2872
2872
- `'none'` means the model will not call any tool and instead generates a message; this is the default when no tools are provided as part of the Prompt.
2873
2873
- `'auto'` means the model can decide to call one or more of the provided tools; this is the default when tools are provided as part of the Prompt.
2874
-
- `'required'` means the model can decide to call one or more of the provided tools.
2874
+
- `'required'` means the model must call one or more of the provided tools.
2875
2875
- `{'type': 'function', 'function': {name': <TOOL_NAME>}}` forces the model to use the named function.
Copy file name to clipboardExpand all lines: src/humanloop/requests/prompt_call_response.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ class PromptCallResponseParams(typing_extensions.TypedDict):
36
36
Controls how the model uses tools. The following options are supported:
37
37
- `'none'` means the model will not call any tool and instead generates a message; this is the default when no tools are provided as part of the Prompt.
38
38
- `'auto'` means the model can decide to call one or more of the provided tools; this is the default when tools are provided as part of the Prompt.
39
-
- `'required'` means the model can decide to call one or more of the provided tools.
39
+
- `'required'` means the model must call one or more of the provided tools.
40
40
- `{'type': 'function', 'function': {name': <TOOL_NAME>}}` forces the model to use the named function.
Copy file name to clipboardExpand all lines: src/humanloop/requests/prompt_log_response.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ class PromptLogResponseParams(typing_extensions.TypedDict):
66
66
Controls how the model uses tools. The following options are supported:
67
67
- `'none'` means the model will not call any tool and instead generates a message; this is the default when no tools are provided as part of the Prompt.
68
68
- `'auto'` means the model can decide to call one or more of the provided tools; this is the default when tools are provided as part of the Prompt.
69
-
- `'required'` means the model can decide to call one or more of the provided tools.
69
+
- `'required'` means the model must call one or more of the provided tools.
70
70
- `{'type': 'function', 'function': {name': <TOOL_NAME>}}` forces the model to use the named function.
Copy file name to clipboardExpand all lines: src/humanloop/types/prompt_call_response.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ class PromptCallResponse(UncheckedBaseModel):
45
45
Controls how the model uses tools. The following options are supported:
46
46
- `'none'` means the model will not call any tool and instead generates a message; this is the default when no tools are provided as part of the Prompt.
47
47
- `'auto'` means the model can decide to call one or more of the provided tools; this is the default when tools are provided as part of the Prompt.
48
-
- `'required'` means the model can decide to call one or more of the provided tools.
48
+
- `'required'` means the model must call one or more of the provided tools.
49
49
- `{'type': 'function', 'function': {name': <TOOL_NAME>}}` forces the model to use the named function.
Copy file name to clipboardExpand all lines: src/humanloop/types/prompt_log_response.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ class PromptLogResponse(UncheckedBaseModel):
69
69
Controls how the model uses tools. The following options are supported:
70
70
- `'none'` means the model will not call any tool and instead generates a message; this is the default when no tools are provided as part of the Prompt.
71
71
- `'auto'` means the model can decide to call one or more of the provided tools; this is the default when tools are provided as part of the Prompt.
72
-
- `'required'` means the model can decide to call one or more of the provided tools.
72
+
- `'required'` means the model must call one or more of the provided tools.
73
73
- `{'type': 'function', 'function': {name': <TOOL_NAME>}}` forces the model to use the named function.
0 commit comments