-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add missing fields to Sign Template Signer and fix AI schema (bo…
- Loading branch information
1 parent
0337e06
commit 0708351
Showing
18 changed files
with
253 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{ "engineHash": "0b023a8", "specHash": "da821cd", "version": "1.2.0" } | ||
{ "engineHash": "6dfffba", "specHash": "57614c2", "version": "1.3.0" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
from typing import Optional | ||
|
||
from typing import Union | ||
|
||
from box_sdk_gen.internal.base_object import BaseObject | ||
|
||
from box_sdk_gen.schemas.ai_llm_endpoint_params_open_ai import AiLlmEndpointParamsOpenAi | ||
|
||
from box_sdk_gen.schemas.ai_llm_endpoint_params_google import AiLlmEndpointParamsGoogle | ||
|
||
|
||
class AiAgentBasicTextToolBase(BaseObject): | ||
def __init__( | ||
self, | ||
*, | ||
model: Optional[str] = None, | ||
num_tokens_for_completion: Optional[int] = None, | ||
llm_endpoint_params: Optional[ | ||
Union[AiLlmEndpointParamsOpenAi, AiLlmEndpointParamsGoogle] | ||
] = None, | ||
**kwargs | ||
): | ||
""" | ||
:param model: The model used for the AI Agent for basic text., defaults to None | ||
:type model: Optional[str], optional | ||
:param num_tokens_for_completion: The number of tokens for completion., defaults to None | ||
:type num_tokens_for_completion: Optional[int], optional | ||
:param llm_endpoint_params: The parameters for the LLM endpoint specific to OpenAI / Google models., defaults to None | ||
:type llm_endpoint_params: Optional[Union[AiLlmEndpointParamsOpenAi, AiLlmEndpointParamsGoogle]], optional | ||
""" | ||
super().__init__(**kwargs) | ||
self.model = model | ||
self.num_tokens_for_completion = num_tokens_for_completion | ||
self.llm_endpoint_params = llm_endpoint_params |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.