pull/659/head
Travis Fischer 2024-07-21 21:32:50 -07:00
rodzic 2b1bd8cdec
commit 410f97382d
4 zmienionych plików z 22 dodań i 37 usunięć

Wyświetl plik

@ -219,14 +219,13 @@ See the [examples](./examples) directory for examples of how to use each of thes
- investigate [autotool](https://github.com/run-llama/LlamaIndexTS/tree/main/packages/autotool)
- investigate [alt search engines](https://seirdy.one/posts/2021/03/10/search-engines-with-own-indexes/)
- investigate [data connectors](https://github.com/mendableai/data-connectors)
- add unit tests for individual providers
## Contributors
- [Travis Fischer](https://x.com/transitive_bs)
- [Kevin Raheja](https://x.com/crabfisher)
- [David Zhang](https://x.com/dzhng)
- [Philipp Burckhardt](https://x.com/burckhap)
- [Riley Tomasek](https://x.com/rileytomasek)
- And all of the [amazing OSS contributors](https://github.com/transitive-bullshit/agentic/graphs/contributors)!
## License

Wyświetl plik

@ -124,35 +124,16 @@ export namespace clearbit {
export type EmailLookupResponse = Partial<{
id: string
name: Partial<{
fullName: string
givenName: string
familyName: string
}>
name: Partial<Name>
email: string
location: string
timeZone: string
utcOffset: number
geo: Partial<{
city: string
state: string
stateCode: string
country: string
countryCode: string
lat: number
lng: number
}>
geo: Partial<GeoIP>
bio: string
site: string
avatar: string
employment: Partial<{
domain: string
name: string
title: string
role: string
subRole: string
seniority: string
}>
employment: Partial<EmploymentAttributes>
facebook: {
handle: string
}
@ -271,6 +252,8 @@ export namespace clearbit {
startDate?: string
endDate?: string
present?: boolean
location?: string
email?: string
highlight?: boolean
}
@ -354,6 +337,8 @@ export namespace clearbit {
stateCode: string
country: string
countryCode: string
lat?: number
lng?: number
}
export interface CompanyRevealResponse {

Wyświetl plik

@ -573,12 +573,13 @@ export namespace diffbot {
export interface Employment {
isCurrent?: boolean
employer?: BasicEntity
from?: DateTime
categories?: Partial<BasicEntity>[]
title?: string
to?: DateTime
description?: string
employer?: BasicEntity
location?: Location
categories?: Partial<BasicEntity>[]
from?: DateTime
to?: DateTime
}
export interface Location {

Wyświetl plik

@ -1839,7 +1839,7 @@ export namespace proxycurl {
typeof ReverseEmailUrlEnrichResultProfileSchema
>
export const PublicPersonSchema = z.object({
export const PersonProfileSchema = z.object({
accomplishment_courses: z.array(StickyCourseSchema).optional(),
accomplishment_honors_awards: z.array(StickyHonourAwardSchema).optional(),
accomplishment_organisations: z
@ -1877,7 +1877,7 @@ export namespace proxycurl {
summary: z.string().optional(),
volunteer_work: z.array(StickyVolunteeringExperienceSchema).optional()
})
export type PublicPerson = z.infer<typeof PublicPersonSchema>
export type PersonProfile = z.infer<typeof PersonProfileSchema>
export const PurpleAcquisitionSchema = z.object({
acquired: z.array(PurpleAcquiredCompanySchema).optional(),
@ -1930,7 +1930,7 @@ export namespace proxycurl {
export const SearchResultSchema = z.object({
last_updated: z.string().optional(),
linkedin_profile_url: z.string().optional(),
profile: PublicPersonSchema.optional()
profile: PersonProfileSchema.optional()
})
export type SearchResult = z.infer<typeof SearchResultSchema>
@ -2119,12 +2119,12 @@ export class ProxycurlClient extends AIFunctionsProvider {
})
async getLinkedInPerson(
opts: proxycurl.PersonProfileEndpointParamsQueryClass
) {
): Promise<proxycurl.PersonProfile> {
return this.ky
.get('api/v2/linkedin', {
searchParams: sanitizeSearchParams(opts)
})
.json<proxycurl.PublicPerson>()
.json<proxycurl.PersonProfile>()
}
@aiFunction({
@ -2135,7 +2135,7 @@ export class ProxycurlClient extends AIFunctionsProvider {
})
async resolveLinkedInPerson(
opts: proxycurl.PersonLookupEndpointParamsQueryClass
) {
): Promise<proxycurl.PersonProfile> {
return this.ky
.get('api/linkedin/profile/resolve', {
searchParams: sanitizeSearchParams({
@ -2143,7 +2143,7 @@ export class ProxycurlClient extends AIFunctionsProvider {
...opts
})
})
.json<proxycurl.PublicPerson>()
.json<proxycurl.PersonProfile>()
}
@aiFunction({
@ -2173,7 +2173,7 @@ export class ProxycurlClient extends AIFunctionsProvider {
})
async resolveLinkedInPersonAtCompanyByRole(
opts: proxycurl.RoleLookupEndpointParamsQueryClass
) {
): Promise<proxycurl.PersonProfile> {
return this.ky
.get('api/find/company/role/', {
searchParams: sanitizeSearchParams({
@ -2181,7 +2181,7 @@ export class ProxycurlClient extends AIFunctionsProvider {
...opts
})
})
.json<proxycurl.PublicPerson>()
.json<proxycurl.PersonProfile>()
}
@aiFunction({