Skip to content

Commit

Permalink
Merge pull request #89 from biothings/kl-at
Browse files Browse the repository at this point in the history
Ingest knowledge_level/agent_type from annotations
  • Loading branch information
tokebe committed Apr 12, 2024
2 parents 07a50cb + 4c5d6de commit 43c47bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parser/endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ export default class Endpoint {
)
: undefined,
source: op.source,
knowledge_level: op.knowledge_level,
agent_type: op.agent_type,
api_name: this.apiMetadata.title,
smartapi: this.apiMetadata.smartapi,
"x-translator": this.apiMetadata["x-translator"],
Expand Down
2 changes: 2 additions & 0 deletions src/parser/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ export interface XBTEKGSOperationObject {
responseMapping?: SmartAPIReferenceObject;
templateInputs?: object;
batchSize?: number;
knowledge_level?: string;
agent_type?: string;
}

export interface SmartAPISpec {
Expand Down

0 comments on commit 43c47bc

Please sign in to comment.