Skip to content

Conversation

@sandergo90
Copy link
Contributor

No description provided.

Copy link
Contributor

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?

Copy link
Contributor Author

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.

Legal insights grounded in trusted sources from your jurisdiction.

## Prerequisites

Copy link
Contributor

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
Copy link
Contributor

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

Copy link
Contributor

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
Copy link
Contributor

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


## Prerequisites

- Obtain an API key for your [LEGALFLY developer account](https://www.legalfly.com/ai-foundry-agents).

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

@sandergo90 sandergo90 changed the title Create LEGALFLY Agent sample Create LEGALFLY Agent sample in Javascript and Python May 12, 2025
@sandergo90 sandergo90 changed the title Create LEGALFLY Agent sample in Javascript and Python Create LEGALFLY Agent sample in TypeScript and Python May 12, 2025
import jsonref
from azure.ai.projects import AIProjectClient
from azure.identity import DefaultAzureCredential
from azure.ai.projects.models import OpenApiTool, OpenApiConnectionAuthDetails, OpenApiConnectionSecurityScheme

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

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.
Copy link
Contributor

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

@lindazqli lindazqli merged commit 7e071d0 into azure-ai-foundry:main May 13, 2025
1 of 3 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.

4 participants