Skip to content

failed to run multiagent_management.ipynb with the up to date escargot version #13

@xixilili

Description

@xixilili

Got
AttributeError: 'MemgraphClient' object has no attribute 'client'

when executing

from config import config

import dataexplorer
dataexploreragent = dataexplorer.DataExplorerEscargot(config, model_name="azuregpt-4o-mini")

import cyphergpt
cyphergptAgent = cyphergpt.CypherEscargot(
    config,
    node_types = "BiologicalProcess, BodyPart, CellularComponent, Datatype, Disease, Drug, DrugClass, Gene, MolecularFunction, Pathway, Symptom",
    relationship_types = """CHEMICALBINDSGENE
    CHEMICALDECREASESEXPRESSION
    CHEMICALINCREASESEXPRESSION
    DRUGINCLASS
    DRUGCAUSESEFFECT
    DRUGTREATSDISEASE
    GENEPARTICIPATESINBIOLOGICALPROCESS
    GENEINPATHWAY
    GENEINTERACTSWITHGENE
    GENEHASMOLECULARFUNCTION
    GENEASSOCIATEDWITHCELLULARCOMPONENT
    GENEASSOCIATESWITHDISEASE
    SYMPTOMMANIFESTATIONOFDISEASE
    BODYPARTUNDEREXPRESSESGENE
    BODYPARTOVEREXPRESSESGENE
    DISEASELOCALIZESTOANATOMY
    DISEASEASSOCIATESWITHDISEASET""",
    relationship_scores="""CHEMICALBINDSGENE	['affinity_nM']
    CHEMICALDECREASESEXPRESSION	['z_score']
    CHEMICALINCREASESEXPRESSION	['z_score']
    DISEASELOCALIZESTOANATOMY	['p_fisher']
    GENEASSOCIATESWITHDISEASE	['score']
    GENECOVARIESWITHGENE	['correlation']
    SYMPTOMMANIFESTATIONOFDISEASE	['p_fisher']
    TRANSCRIPTIONFACTORINTERACTSWITHGENE	['confidence']""" ,
    model_name="azuregpt-4o-mini")
cyphergptAgent.memgraph_client.schema ="""Node properties are the following:
Node name: 'BiologicalProcess', Node properties: ['commonName']
Node name: 'BodyPart', Node properties: ['commonName']
Node name: 'CellularComponent', Node properties: ['commonName']
Node name: 'Disease', Node properties: ['commonName']
Node name: 'Drug', Node properties: ['commonName']
Node name: 'DrugClass', Node properties: ['commonName']
Node name: 'Gene', Node properties: ['commonName', 'geneSymbol', 'typeOfGene']
Node name: 'MolecularFunction', Node properties: ['commonName']
Node name: 'Pathway', Node properties: ['pathwayName']
Node name: 'Symptom', Node properties: ['commonName']
Relationship properties are the following:
The relationships are the following:
(:Drug)-[:CHEMICALBINDSGENE]-(:Gene)
(:Drug)-[:CHEMICALDECREASESEXPRESSION]-(:Gene)
(:Drug)-[:CHEMICALINCREASESEXPRESSION]-(:Gene)
(:Drug)-[:DRUGINCLASS]-(:DrugClass)
(:Drug)-[:DRUGCAUSESEFFECT]-(:Disease)
(:Drug)-[:DRUGTREATSDISEASE]-(:Disease)
(:Gene)-[:GENEPARTICIPATESINBIOLOGICALPROCESS]-(:BiologicalProcess)
(:Gene)-[:GENEINPATHWAY]-(:Pathway)
(:Gene)-[:GENEINTERACTSWITHGENE]-(:Gene)
(:Gene)-[:GENEHASMOLECULARFUNCTION]-(:MolecularFunction)
(:Gene)-[:GENEASSOCIATEDWITHCELLULARCOMPONENT]-(:CellularComponent)
(:Gene)-[:GENEASSOCIATESWITHDISEASE]-(:Disease)
(:Symptom)-[:SYMPTOMMANIFESTATIONOFDISEASE]-(:Disease)
(:BodyPart)-[:BODYPARTUNDEREXPRESSESGENE]-(:Gene)
(:BodyPart)-[:BODYPARTOVEREXPRESSESGENE]-(:Gene)
(:Disease)-[:DISEASELOCALIZESTOANATOMY]-(:BodyPart)
(:Disease)-[:DISEASEASSOCIATESWITHDISEASET]-(:Disease)"""

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