googleapis / google-cloud-python

Google Cloud Client Library for Python
https://googleapis.github.io/google-cloud-python/
Apache License 2.0
4.81k stars 1.52k forks source link

[dialogflow-cx] datastore summary prompt missing #12853

Closed iuiu34 closed 1 month ago

iuiu34 commented 3 months ago

Determine this is the right repository

Summary of the issue

in packages/google-cloud-dialogflow-cx, the option to "Customize summarization prompt" seems missing in the api. But rest of option in Generative Ai, no: agent name, business, etc. are there.

I'm using

API client name and version

google-cloud-dialogflow-cx-1.34.0

Reproduction steps: code

def data_store_system_push(model='gemini-1.5-flash'):
    print('data_store_system_push')
    client_options = get_client_options()
    client = AgentsClient(client_options=client_options)
    agent_path = get_agent_path()
    generative_settings_path = f"{agent_path}/generativeSettings"
    generative_settings = GenerativeSettings(name=generative_settings_path,
                                             language_code='en')
    generative_settings.llm_model_settings.model = model
    generative_settings.llm_model_settings.prompt_text = 'test'
    generative_settings.knowledge_connector_settings.business = "business_name"

    request = UpdateGenerativeSettingsRequest(generative_settings=generative_settings)
    client.update_generative_settings(request=request)

Reproduction steps: supporting files

No response

Reproduction steps: actual results

No response

Reproduction steps: expected results

No response

OS & version + platform

No response

Python environment

py 3.9

Python dependencies

google-cloud-dialogflow-cx 1.34.0

iuiu34 commented 3 months ago

could be related with that in generative_settings.py the LlmModelSettings is not a subclass of GenerativeSettings? And that is passed as string to llm_model_settings?

parthea commented 2 months ago

@yil532, Please see the screenshot in https://github.com/googleapis/google-cloud-python/issues/12853#issue-2384442093, specifically the field where it says this is missing. Please can you clarify which field this corresponds to in the Dialogflow CX API, and whether the field exists on this page?

parthea commented 1 month ago

I'm going to close this issue due to inactivity but please feel free to open a new issue with more information.