Skip to content

Bug/fix tool path #2

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

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,21 @@ def invoke(self, input, trace):
write_from_dict=True
)
row = input.get("input", {})

# Log inputs and config to trace
trace.span["name"] = "WRITE_TO_SHAREPOINT_LIST_TOOL_CALL"
trace.inputs["list"] = self.list
trace.inputs["row"] = row
trace.attributes["config"] = self.config
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't work, self.config is not assigned in the set_configmethod

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 711d7fb


sharepoint_writer.write_row(row)
sharepoint_writer.close()

output_text = 'The record was added on the "{}" SharePoint list'.format(self.list)

# Log outputs to trace
trace.outputs["output"] = output_text

return {
"output": 'The record was added on the "{}" SharePoint list'.format(self.list)
"output": output_text
}