Skip to content

Commit

Permalink
better example
Browse files Browse the repository at this point in the history
  • Loading branch information
gtarpenning committed Jan 14, 2025
1 parent 65ca744 commit f70b031
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ const makeAnnotateCallCode = (
projectName: string
) => `api = weave.init('${projectName}')
for call in api.get_calls():
call.feedback.add(
feedback_type='${fullSpecName}',
payload={"value": ${payloadValue}},
annotation_ref='${uri}'
)`;
call = api.get_calls()[0]
call.feedback.add(
feedback_type='${fullSpecName}',
payload={"value": ${payloadValue}},
annotation_ref='${uri}'
)`;

const makeAnnotationPayloadFromSpec = (
spec?: AnnotationSpec['field_schema']
Expand Down

0 comments on commit f70b031

Please sign in to comment.