Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The AssistantMemory model of the Python client does not match the model of the AssistantMemory on the server side, causing the client's create_assistant behavior to be unoperational. #58

Open
hartefisher opened this issue Nov 22, 2024 · 0 comments

Comments

@hartefisher
Copy link

Describe the bug
The AssistantMemory model on the Python client (0.3.0) from taskingai.client.models.entities.assistant_memory does not match the AssistantMemory model on the server side from backend.app.models.assistant.memory.assistant_memory, which causes the client's create_assistant action to fail, returning the error 'the max_messages field is required for the message_window memory type.'

To Reproduce
The code is as follows:

  taskingai.assistant.create_assistant(
    model_id=model_id,
    name="Customer Service Assistant",
    description="A professional assistant for customer service.",
    system_prompt_template=["You are a professional customer service assistant speaking {{language}}."],
    memory={"type": "message_window", 'max_messages': 10},
    tools=[],
    retrievals=[],
    retrieval_configs={
        "top_k": 3, 
        "max_tokens": 4096,
        "method": "user_message"
    },
    metadata={"foo": "bar"},
  )

Expected behavior
Successfully create an Assistant.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant