-
Notifications
You must be signed in to change notification settings - Fork 202
Create LEGALFLY Agent sample in TypeScript and Python #71
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
Conversation
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.
i dont think this file is needed?
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.
It is because this samples use bun instead of node so don't want to add it to the global .gitignore file.
samples/microsoft/javascript/getting-started-agents/legalfly/.tool-versions
Outdated
Show resolved
Hide resolved
| Legal insights grounded in trusted sources from your jurisdiction. | ||
|
|
||
| ## Prerequisites | ||
|
|
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.
could you please provide instructions on how to create an account with Legalfly if customers dont have one?
| - Set the connection name to your connection name. You use this connection name in your sample code or Foundry Portal later. | ||
| - For the **Access** setting, you can choose either _this project only_ or _shared to all projects_. Just make sure in your code, the connection string of the project you entered has access to this connection. | ||
|
|
||
| ## Use LEGALFLY |
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.
could you please remove these sections for now since LEGALFLY wouldn't be available in UX for Build? UX will come post Build
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.
you can provide instructions on how to use through the code sample
| 4. Select the custom key connection you just created. | ||
| 5. Finish and start chatting. | ||
|
|
||
| ## Customer Support Contact |
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.
Could you please provide customer support contact/website? this is required
samples/microsoft/javascript/getting-started-agents/legalfly/package.json
Outdated
Show resolved
Hide resolved
samples/microsoft/javascript/getting-started-agents/legalfly/src/index.ts
Outdated
Show resolved
Hide resolved
|
|
||
| ## Prerequisites | ||
|
|
||
| - Obtain an API key for your [LEGALFLY developer account](https://www.legalfly.com/ai-foundry-agents). |
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 URL (https://www.legalfly.com/ai-foundry-agents) doesn't work currently
| import jsonref | ||
| from azure.ai.projects import AIProjectClient | ||
| from azure.identity import DefaultAzureCredential | ||
| from azure.ai.projects.models import OpenApiTool, OpenApiConnectionAuthDetails, OpenApiConnectionSecurityScheme |
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.
This uses the old SDK. It must use the new agents SDK
samples/microsoft/python/getting-started-agents/3p-tools/legalfly/legalfly.json
Show resolved
Hide resolved
| 1. Before running the sample: | ||
| 1. pip install azure-ai-projects azure-ai-agents azure-identity python-dotenv | ||
| 1. Set these environment variables with your own values: | ||
| 1. PROJECT_CONNECTION_STRING - the Azure AI Agents connection string. |
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.
please update this as you use the new SDK, it would be PROJECT_ENDPOINT
No description provided.