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 [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 [alt search engines](https://seirdy.one/posts/2021/03/10/search-engines-with-own-indexes/)
- investigate [data connectors](https://github.com/mendableai/data-connectors) - investigate [data connectors](https://github.com/mendableai/data-connectors)
- add unit tests for individual providers
## Contributors ## Contributors
- [Travis Fischer](https://x.com/transitive_bs) - [Travis Fischer](https://x.com/transitive_bs)
- [Kevin Raheja](https://x.com/crabfisher)
- [David Zhang](https://x.com/dzhng) - [David Zhang](https://x.com/dzhng)
- [Philipp Burckhardt](https://x.com/burckhap) - [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)! - And all of the [amazing OSS contributors](https://github.com/transitive-bullshit/agentic/graphs/contributors)!
## License ## License

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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