Skip to content

Default Agent Code is not working in Client Environment #125

Open
@keyuluipath

Description

@keyuluipath

Hello Team,

In client Environment client VSCode has getting below error for below default Agent Code.

Issue 1:

return GraphOutput(report=output.content)

Error:

Image

RCA: Client VSCode has PyLance that is forcing to convert argument as String. GraphOutput is looking for String hence we have replaced with below code
return GraphOutput(report=str(output.content))

Image

Issue 2

builder = StateGraph(GraphState, output=GraphOutput)

Error:

Image

Fixed :

Image

As requested by @cristipufu Opening this issue.

Regards
Keyul Shah

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