Skip to content
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

Open
wants to merge 67 commits into
base: main
Choose a base branch
from
Open

Conversation

rysweet
Copy link
Collaborator

@rysweet rysweet commented Nov 18, 2024

  • changes to _worker_runtime.py that adds serialization for cloud events
  • samples for xlang by Peter

@@ -0,0 +1,15 @@
{
Copy link
Collaborator

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)!],
Copy link
Collaborator

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);
Copy link
Collaborator

@LittleLittleCloud LittleLittleCloud Nov 18, 2024

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)
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants