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

Switch inline switcher and multiple action schema to use dynamic action schema creation API #424

Merged
merged 2 commits into from
Nov 22, 2024

Conversation

curtisman
Copy link
Member

@curtisman curtisman commented Nov 22, 2024

Inline switcher and multiple action schema to use dynamic action schema creation API, whether we use the in-memory validator or type script validate.

Also, leveraging the above implemented a function to generate composite schema that is sent to the LLM (that includes the injected, inline switcher and multiple action) and wired that to agent-cli schema --generated. It is not used in the actual action translation yet, and will be in a follow up PR.

Additional change:

  • Add capability to have type reference that is not resolved (for the multiple action case), with the assumption that the definition will be somewhere.
    • During generation, it will error out by default if there are unresolved type reference, but will ignore if { strict: false} is passed in to the generation function.
  • Add template parameter for SchemaType types so that it can narrow the type of fields, etc. Use to specify the shape of an ActionSchema, and has the compiler/intelligence know of the fields (actionName and parameters)
  • Starting to transition the translator nomenclature to refer to a set of action schema for an app agent, and switch to action or actionSchema
  • Change the natural order of schema generation to be "depth" first so that type references are close to each other.

@curtisman curtisman added this pull request to the merge queue Nov 22, 2024
@curtisman curtisman removed this pull request from the merge queue due to a manual request Nov 22, 2024
@curtisman curtisman added this pull request to the merge queue Nov 22, 2024
Merged via the queue into microsoft:main with commit 30c8538 Nov 22, 2024
10 checks passed
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.

1 participant