Zotero Review
This tool implements human-in-the-loop review for Zotero write operations.
ZoteroReviewDecision
Bases: BaseModel
Structured output schema for the human review decision. - decision: "approve", "reject", or "custom" - custom_path: Optional custom collection path if the decision is "custom"
Source code in aiagents4pharma/talk2scholars/tools/zotero/zotero_review.py
23 24 25 26 27 28 29 30 31 |
|
ZoteroReviewInput
Bases: BaseModel
Input schema for the Zotero review tool.
Source code in aiagents4pharma/talk2scholars/tools/zotero/zotero_review.py
34 35 36 37 38 39 40 41 |
|
zotero_review(tool_call_id, collection_path, state)
Use this tool to get human review and approval before saving papers to Zotero. This tool should be called before the zotero_write to ensure the user approves the operation.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
tool_call_id
|
str
|
The tool call ID. |
required |
collection_path
|
str
|
The Zotero collection path where papers should be saved. |
required |
state
|
dict
|
The state containing previously fetched papers. |
required |
Returns:
Type | Description |
---|---|
Command[Any]
|
Command[Any]: The next action to take based on human input. |
Source code in aiagents4pharma/talk2scholars/tools/zotero/zotero_review.py
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 |
|