@gencode/agents 0.7.3 → 0.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +91 -91
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -383,7 +383,9 @@ type UserEntry = {
|
|
|
383
383
|
/** An assistant message turn; may include tool calls when the LLM used tools */
|
|
384
384
|
type AssistantEntry = {
|
|
385
385
|
role: "assistant"; /** Text response from the assistant (may be empty when the turn is tool-only) */
|
|
386
|
-
content: string; /**
|
|
386
|
+
content: string; /** Persisted SDK stop reason when the assistant turn ended abnormally. */
|
|
387
|
+
stopReason?: "stop" | "length" | "toolUse" | "error" | "aborted"; /** Pi-compatible assistant error text for failed model turns. */
|
|
388
|
+
errorMessage?: string; /** Tool calls issued by the assistant during this turn */
|
|
387
389
|
toolCalls?: Array<{
|
|
388
390
|
id: string;
|
|
389
391
|
name: string;
|