Skip to content

Invalid assistant ID error prevents replying to an email #11

@justinwiley

Description

@justinwiley

I'm following the youtube tutorial and readme, using the hosted version of agent inbox.

I've set it up in the hosted version of agent inbox and plugging in my langsmith api key, I see threads. After receiving an email, I see a question that requires an action, I click reply after entering some text and see "invalid assistant ID". Settings doesn't have any option to add an assistant ID.

Looking in the rewrite task I see its used for namespace in some way:

async def rewrite(state: State, config, store):
    model = config["configurable"].get("model", "gpt-4o")
    llm = ChatOpenAI(model=model, temperature=0)
    prev_message = state["messages"][-1]
    draft = prev_message.tool_calls[0]["args"]["content"]
    namespace = (config["configurable"].get("assistant_id", "default"),)  # no value for this in config.yaml
    result = await store.aget(namespace, "rewrite_instructions")
    prompt_config = get_config(config)

How can I set this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions