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 #12852

Closed XavierBanos closed 3 months ago

XavierBanos 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

XavierBanos 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?