@systemfsoftware/agent 0.1.0-beta.192 → 0.1.0
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/dist/{Admin-BfolLkHj.d.mts → Admin-26pelcl9.d.mts} +5 -5
- package/dist/{Agent-DSVEpq4e.d.mts → Agent-BH_R6LOI.d.mts} +1 -1
- package/dist/{AgentRegistration-Dg53p6du.mjs → AgentRegistration-h07X1mZM.mjs} +2 -2
- package/dist/{AgentRegistration-Dg53p6du.mjs.map → AgentRegistration-h07X1mZM.mjs.map} +1 -1
- package/dist/{AgentRuntime-CoGy_5dm.d.mts → AgentRuntime-C3GQPdrv.d.mts} +3 -3
- package/dist/{AgentRuntime-CzP4I4RB.mjs → AgentRuntime-CrYYV9RF.mjs} +3 -28
- package/dist/AgentRuntime-CrYYV9RF.mjs.map +1 -0
- package/dist/{BrowserUse-C9vict2M.d.mts → BrowserUse-DgCEbTwW.d.mts} +10 -10
- package/dist/{CommittedActivity-LWOKXqdi.d.mts → CommittedActivity-DMfj2beT.d.mts} +1 -1
- package/dist/{ContextTools-917r7gpv.d.mts → ContextTools-D5jrWNNH.d.mts} +12 -12
- package/dist/{DurableAgentRuntime-BHXo8GPJ.mjs → DurableAgentRuntime-D3UTrNQg.mjs} +4 -4
- package/dist/{DurableAgentRuntime-BHXo8GPJ.mjs.map → DurableAgentRuntime-D3UTrNQg.mjs.map} +1 -1
- package/dist/{EventSource-C0TCBeIf.d.mts → EventSource-BWY08cyT.d.mts} +1 -1
- package/dist/{MemoryNotes-4CRzkPBD.d.mts → MemoryNotes-CPvcb5OX.d.mts} +6 -6
- package/dist/{MessageDelivery-Dh6GZBt_.d.mts → MessageDelivery-C0S-Cakt.d.mts} +2 -2
- package/dist/{Messaging-DhM-APnP.d.mts → Messaging-DnnpWe-H.d.mts} +17 -17
- package/dist/{MessagingHost-CubWeYKN.d.mts → MessagingHost-DPPHTLdT.d.mts} +1 -1
- package/dist/{Output-SbOdlBFL.d.mts → Output-CafxF31F.d.mts} +1 -1
- package/dist/{PersistentHistory-BrtZ0g2j.d.mts → PersistentHistory-h-C7avqL.d.mts} +1 -1
- package/dist/{PreparedInputAdmission-Ci18uY4s.d.mts → PreparedInputAdmission-DYugcCHR.d.mts} +1 -1
- package/dist/{RunContinuation-BVAHoYlN.d.mts → RunContinuation-Cy2W8ASl.d.mts} +2 -2
- package/dist/{ScheduleTransition-CjVP48I8.d.mts → ScheduleTransition-DcqokgFt.d.mts} +1 -1
- package/dist/{Scheduling-DYTM29s9.d.mts → Scheduling-BaJXJIVt.d.mts} +2 -2
- package/dist/{Subagent-CSIRUgUo.mjs → Subagent-BJJN6n0E.mjs} +2 -2
- package/dist/{Subagent-CSIRUgUo.mjs.map → Subagent-BJJN6n0E.mjs.map} +1 -1
- package/dist/{Subagent-CXEI5YZ8.d.mts → Subagent-GXU32fQt.d.mts} +18 -18
- package/dist/{SubagentHost-CKhz1vbH.d.mts → SubagentHost-BC9B9dNT.d.mts} +1 -1
- package/dist/{Subscription-CC--_OnU.d.mts → Subscription-BJ0TtZwM.d.mts} +2 -2
- package/dist/{SubscriptionInput-Xcd4JjEs.mjs → SubscriptionInput-BbV69oX_.mjs} +2 -2
- package/dist/{SubscriptionInput-Xcd4JjEs.mjs.map → SubscriptionInput-BbV69oX_.mjs.map} +1 -1
- package/dist/{SubscriptionInput-BEeB0Cj8.d.mts → SubscriptionInput-D6Okd6-z.d.mts} +1 -1
- package/dist/{SubscriptionTransition-CWt9UVH0.d.mts → SubscriptionTransition-Da9DmAr_.d.mts} +1 -1
- package/dist/{Subscriptions-4K_qu_2f.mjs → Subscriptions-BS3AXmQ0.mjs} +2 -2
- package/dist/{Subscriptions-4K_qu_2f.mjs.map → Subscriptions-BS3AXmQ0.mjs.map} +1 -1
- package/dist/{Subscriptions-BF3aSf8X.d.mts → Subscriptions-DgjahL6V.d.mts} +5 -5
- package/dist/{ThreadContextHistory-lTZ8Ftq1.d.mts → ThreadContextHistory-BVTD96Pe.d.mts} +1 -1
- package/dist/{ThreadImport-DaSmrlRi.d.mts → ThreadImport-BQDW9E_Y.d.mts} +3 -3
- package/dist/{ThreadInvariants-DyPhMeo-.d.mts → ThreadInvariants-w53c67YS.d.mts} +3 -3
- package/dist/{ThreadProjectionMaintenance-DjUy7kCa.d.mts → ThreadProjectionMaintenance-4ccU1auU.d.mts} +1 -1
- package/dist/{ThreadTransfer-BM02cbOo.d.mts → ThreadTransfer-D0KsqkSR.d.mts} +1 -1
- package/dist/{ToolDiscovery-VjamzX3q.d.mts → ToolDiscovery-DvcfbTBk.d.mts} +2 -2
- package/dist/{ToolResults-C4-HsMCp.d.mts → ToolResults-NUk_x837.d.mts} +2 -2
- package/dist/{WebSearch-CD0V--qh.d.mts → WebSearch-RBUUOfT8.d.mts} +1 -1
- package/dist/{WorkerAdmission-BnRuXLWF.d.mts → WorkerAdmission-CubQgpsl.d.mts} +1 -1
- package/dist/{WorkerAdmission-BhFjx86s.mjs → WorkerAdmission-D8tw_OmT.mjs} +2 -2
- package/dist/{WorkerAdmission-BhFjx86s.mjs.map → WorkerAdmission-D8tw_OmT.mjs.map} +1 -1
- package/dist/{WorkerHost-DtYzi54D.d.mts → WorkerHost-BciHCzHq.d.mts} +2 -2
- package/dist/{agent-registration-CNs2twrr.mjs → agent-registration-D9ofkoBa.mjs} +2 -2
- package/dist/{agent-registration-CNs2twrr.mjs.map → agent-registration-D9ofkoBa.mjs.map} +1 -1
- package/dist/capabilities/BrowserUse.d.mts +1 -1
- package/dist/capabilities/ContextTools.d.mts +1 -1
- package/dist/capabilities/MemoryNotes.d.mts +1 -1
- package/dist/capabilities/Messaging.d.mts +1 -1
- package/dist/capabilities/Subagent.d.mts +1 -1
- package/dist/capabilities/Subagent.mjs +1 -1
- package/dist/capabilities/ToolDiscovery.d.mts +1 -1
- package/dist/capabilities/ToolResults.d.mts +1 -1
- package/dist/capabilities/WebSearch.d.mts +1 -1
- package/dist/core/Agent.d.mts +1 -1
- package/dist/durable/Admin.d.mts +1 -1
- package/dist/durable/AgentRegistration.d.mts +1 -1
- package/dist/durable/AgentRegistration.mjs +2 -2
- package/dist/durable/CommittedActivity.d.mts +1 -1
- package/dist/durable/DurableAgentRuntime.d.mts +1 -1
- package/dist/durable/DurableAgentRuntime.mjs +2 -2
- package/dist/durable/EventSource.d.mts +1 -1
- package/dist/durable/LifecyclePublication.d.mts +1 -1
- package/dist/durable/MessageDelivery.d.mts +1 -1
- package/dist/durable/MessageDeliveryStoreConformance.d.mts +2 -2
- package/dist/durable/PersistentHistory.d.mts +1 -1
- package/dist/durable/PreparedInputAdmission.d.mts +1 -1
- package/dist/durable/Recovery.d.mts +1 -1
- package/dist/durable/RunContinuation.d.mts +2 -2
- package/dist/durable/RunJournal.d.mts +1 -1
- package/dist/durable/RunStorage.d.mts +1 -1
- package/dist/durable/Schedule.d.mts +1 -1
- package/dist/durable/ScheduleStoreConformance.d.mts +1 -1
- package/dist/durable/ScheduleTransition.d.mts +1 -1
- package/dist/durable/Scheduling.d.mts +1 -1
- package/dist/durable/SettlementPublisher.d.mts +1 -1
- package/dist/durable/SubmissionLedger.d.mts +1 -1
- package/dist/durable/SubmissionLedgerConformance.d.mts +1 -1
- package/dist/durable/SubmissionStatus.d.mts +1 -1
- package/dist/durable/Subscription.d.mts +1 -1
- package/dist/durable/SubscriptionInput.d.mts +1 -1
- package/dist/durable/SubscriptionInput.mjs +1 -1
- package/dist/durable/SubscriptionStoreConformance.d.mts +1 -1
- package/dist/durable/SubscriptionTransition.d.mts +1 -1
- package/dist/durable/Subscriptions.d.mts +1 -1
- package/dist/durable/Subscriptions.mjs +1 -1
- package/dist/durable/ThreadArchiveRange.d.mts +1 -1
- package/dist/durable/ThreadContextHistory.d.mts +1 -1
- package/dist/durable/ThreadImport.d.mts +1 -1
- package/dist/durable/ThreadInvariants.d.mts +1 -1
- package/dist/durable/ThreadProjectionMaintenance.d.mts +1 -1
- package/dist/durable/ThreadReader.d.mts +1 -1
- package/dist/durable/ThreadStore.d.mts +1 -1
- package/dist/durable/ThreadStoreConformance.d.mts +1 -1
- package/dist/durable/ThreadTransfer.d.mts +1 -1
- package/dist/durable/ThreadWork.d.mts +1 -1
- package/dist/durable/WorkerAdmission.d.mts +1 -1
- package/dist/durable/WorkerAdmission.mjs +1 -1
- package/dist/durable/WorkerHost.d.mts +1 -1
- package/dist/engine/AgentRuntime.d.mts +1 -1
- package/dist/engine/AgentRuntime.mjs +1 -1
- package/dist/engine/MessagingHost.d.mts +1 -1
- package/dist/engine/Output.d.mts +1 -1
- package/dist/engine/SubagentHost.d.mts +1 -1
- package/dist/index.d.mts +33 -33
- package/dist/index.mjs +7 -7
- package/dist/{run-context-reader-CHox63hg.d.mts → run-context-reader-D1Tx1G6V.d.mts} +1 -1
- package/package.json +6 -6
- package/src/engine/internal/agent-runtime.ts +4 -58
- package/dist/AgentRuntime-CzP4I4RB.mjs.map +0 -1
|
@@ -28,7 +28,6 @@ import * as Result from 'effect/Result'
|
|
|
28
28
|
import * as Schedule from 'effect/Schedule'
|
|
29
29
|
import * as Schema from 'effect/Schema'
|
|
30
30
|
import * as SchemaAST from 'effect/SchemaAST'
|
|
31
|
-
import * as SchemaGetter from 'effect/SchemaGetter'
|
|
32
31
|
import * as Scope from 'effect/Scope'
|
|
33
32
|
import * as Semaphore from 'effect/Semaphore'
|
|
34
33
|
import * as Stream from 'effect/Stream'
|
|
@@ -1022,62 +1021,6 @@ const inspectModelResponsePartCapacity = (
|
|
|
1022
1021
|
)
|
|
1023
1022
|
}
|
|
1024
1023
|
|
|
1025
|
-
/**
|
|
1026
|
-
* LanguageModel validates encoded parameters even with automatic resolution disabled.
|
|
1027
|
-
* Defer only recoverable application parameter validation; the declaration's JSON codec
|
|
1028
|
-
* still exposes the original schema to providers and preserves their wire normalization.
|
|
1029
|
-
* No handler is installed or executed by this transport-only Toolkit.
|
|
1030
|
-
*/
|
|
1031
|
-
const defersToolParameters = (tool: Tool.Any): boolean =>
|
|
1032
|
-
tool.failureMode === 'return' &&
|
|
1033
|
-
!(Tool.isProviderDefined(tool) && !tool.requiresHandler) &&
|
|
1034
|
-
!(Tool.isDynamic(tool) && tool.jsonSchema !== undefined)
|
|
1035
|
-
|
|
1036
|
-
// Tool setters return new declarations. Share only transport wrappers: decoding still
|
|
1037
|
-
// runs with the current request's services, and discarded Tool identities can be collected.
|
|
1038
|
-
const deferredParameterTools = new WeakMap<Tool.Any, Tool.Any>()
|
|
1039
|
-
|
|
1040
|
-
const deferredToolParameterToolkit = <Tools extends Record<string, Tool.Any>>(
|
|
1041
|
-
toolkit: Toolkit.Toolkit<Tools>,
|
|
1042
|
-
): Toolkit.Toolkit<Record<string, Tool.Any>> => {
|
|
1043
|
-
// Preserve the native request unchanged when it has no recoverable parameters.
|
|
1044
|
-
// Toolkit's handler parameter variance is irrelevant to this resolution-disabled transport.
|
|
1045
|
-
if (!Object.values(toolkit.tools).some(defersToolParameters)) {
|
|
1046
|
-
return toolkit as unknown as Toolkit.Toolkit<Record<string, Tool.Any>>
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
return Toolkit.make(
|
|
1050
|
-
...Object.values(toolkit.tools).map((tool) => {
|
|
1051
|
-
if (!defersToolParameters(tool)) return tool
|
|
1052
|
-
const cached = deferredParameterTools.get(tool)
|
|
1053
|
-
|
|
1054
|
-
if (cached !== undefined) return cached
|
|
1055
|
-
|
|
1056
|
-
const deferred = tool.setParameters(
|
|
1057
|
-
Schema.declareConstructor<unknown>()(
|
|
1058
|
-
[],
|
|
1059
|
-
() => (input) =>
|
|
1060
|
-
Schema.decodeUnknownEffect(Schema.toEncoded(tool.parametersSchema))(input).pipe(
|
|
1061
|
-
Effect.orElseSucceed(() => input),
|
|
1062
|
-
),
|
|
1063
|
-
{
|
|
1064
|
-
description: Tool.getDescription(tool),
|
|
1065
|
-
toCodecJson: () =>
|
|
1066
|
-
Schema.link<unknown>()(Schema.toEncoded(tool.parametersSchema), {
|
|
1067
|
-
decode: SchemaGetter.passthrough(),
|
|
1068
|
-
encode: SchemaGetter.passthrough(),
|
|
1069
|
-
}),
|
|
1070
|
-
},
|
|
1071
|
-
),
|
|
1072
|
-
)
|
|
1073
|
-
|
|
1074
|
-
deferredParameterTools.set(tool, deferred)
|
|
1075
|
-
|
|
1076
|
-
return deferred
|
|
1077
|
-
}),
|
|
1078
|
-
)
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
1024
|
/** Own fresh JSON arguments without accepting them as executable parameters. */
|
|
1082
1025
|
const encodedToolParameterToolkit = (toolkit: Toolkit.Any): Toolkit.Any =>
|
|
1083
1026
|
Toolkit.make(
|
|
@@ -6489,8 +6432,11 @@ const makeTurn = <
|
|
|
6489
6432
|
// contract in the leading system block before appending
|
|
6490
6433
|
// transient run status.
|
|
6491
6434
|
prompt: providerPrompt,
|
|
6492
|
-
toolkit:
|
|
6435
|
+
toolkit: requestToolkit,
|
|
6493
6436
|
disableToolCallResolution: true,
|
|
6437
|
+
// The engine validates every application Tool Call's parameters itself, so
|
|
6438
|
+
// `failureMode: "return"` rejections reach the model instead of failing the stream.
|
|
6439
|
+
toolCallValidation: 'deferred',
|
|
6494
6440
|
// Exact required Tool selection preserves the toolkit. A oneOf
|
|
6495
6441
|
// subset can drop other schemas and break the cached prefix.
|
|
6496
6442
|
...(toolChoice === undefined ? {} : { toolChoice }),
|