-
Notifications
You must be signed in to change notification settings - Fork 5k
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
the python side of the xlang changes #4256
base: main
Are you sure you want to change the base?
Conversation
rysweet
commented
Nov 18, 2024
- changes to _worker_runtime.py that adds serialization for cloud events
- samples for xlang by Peter
unneeded change
@@ -0,0 +1,15 @@ | |||
{ |
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.
Don't checkin appsettings.Development.json
@@ -98,7 +98,7 @@ public static implicit operator AIFunctionMetadata(FunctionContract contract) | |||
[NamespaceKey] = contract.Namespace, | |||
[ClassNameKey] = contract.ClassName, | |||
}, | |||
Parameters = [.. contract.Parameters?.Select(p => (AIFunctionParameterMetadata)p)], | |||
Parameters = [.. contract.Parameters?.Select(p => (AIFunctionParameterMetadata)p)!], |
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.
Is this change relevant?
@@ -8,6 +8,7 @@ public interface IAgentWorker | |||
ValueTask PublishEventAsync(CloudEvent evt, CancellationToken cancellationToken = default); | |||
ValueTask SendRequestAsync(IAgentBase agent, RpcRequest request, CancellationToken cancellationToken = default); |
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.
The IAgentRuntime
and IAgentWorker
looks quite similar, can we combine them?
(Not in this PR, maybe in the future)
), | ||
metadata=get_telemetry_grpc_metadata(), | ||
) | ||
await self._process_event(event) |
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.
Just leave a note here. We need to wrap RpcRequest, RpcResponse and Event in to CloudEvent.