Skip to content

Commit

Permalink
fix: add constructor input for lang_code
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaphoenix committed Oct 29, 2024
1 parent dfdf230 commit 0822934
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dfcx_scrapi/core/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def __init__(
creds=None,
scope=False,
agent_id: str = None,
language_code: str = "en"
):
super().__init__(
creds_path=creds_path,
Expand All @@ -53,6 +54,8 @@ def __init__(
self.agent_id = agent_id
self.client_options = self._set_region(agent_id)

self.langauge_code = language_code

@scrapi_base.api_call_counter_decorator
def _list_agents_client_request(self, location_id) -> List[
types.agent.Agent
Expand Down
3 changes: 3 additions & 0 deletions src/dfcx_scrapi/core/intents.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def __init__(
scope=False,
intent_id: str = None,
agent_id: str = None,
language_code: str = "en"
):
super().__init__(
creds_path=creds_path,
Expand All @@ -59,6 +60,8 @@ def __init__(
if agent_id:
self.agent_id = agent_id

self.language_code = language_code

@staticmethod
def concat_dict_and_df(
intent_df: pd.DataFrame,
Expand Down

0 comments on commit 0822934

Please sign in to comment.