-
Notifications
You must be signed in to change notification settings - Fork 64
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
chore(docs): Document low-level Python API for creating calls #2345
Conversation
weave.finish_call(call, output="Hello, World!") | ||
|
||
# Call your function | ||
print(my_function.call("World")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this just be my_function("World")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch -- copied too much of the existing code 🤦
while we're at it -- any reason to present the other examples on this page this way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, not sure what you mean
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see - yes I agree, no reason to use .call
here
Preview this PR with FeatureBee: https://beta.wandb.ai/?betaVersion=a3ce2e661724732b9584e0cb2fe4871dac3ba76f |
Adds an example to docs of how to use
weave.create_call
andweave.finish_call
to trace function calls.Relevant new section: